forked from ifm/royale-ros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
camera.launch
89 lines (76 loc) · 2.94 KB
/
camera.launch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?xml version="1.0"?>
<!--
Copyright (C) 2017 Love Park Robotics, LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distribted on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<launch>
<arg name="camera" default="camera"/>
<arg name="serial_number" default="-"/>
<arg name="on_at_startup" default="true"/>
<arg name="use_case" default="-"/>
<node pkg="nodelet"
type="nodelet"
name="$(arg camera)_standalone_nodelet"
args="manager"
output="screen"/>
<node pkg="nodelet"
type="nodelet"
name="$(arg camera)"
args="load royale_ros/camera_nodelet $(arg camera)_standalone_nodelet"
output="screen">
<!-- You can add topic remappings here, e.g.: -->
<!-- <remap from="/$(arg camera)/stream/1/cloud" to="/$(arg camera)/cloud"/> -->
<rosparam subst_value="true">
#
# This is the specific camera to connect to
# or the special string "-" to connect to the
# first camera found on the bus
#
serial_number: "$(arg serial_number)"
#
# If a connection to the desired camera cannot be made,
# or is lost, this is how often to poll the bus to see
# if it was plugged back in
#
poll_bus_secs: 1.0
#
# Time in seconds used to detect a disconnected camera. For responsive
# behavior, you should set: timeout_secs >= poll_bus_secs
#
timeout_secs: 1.0
#
# tf frame names
#
optical_frame: $(arg camera)_optical_link
sensor_frame: $(arg camera)_link
#
# The camera node provides for a turning on/off the camera via software.
# This allows for turning off the active illumination unit in the
# event the royale camera is deployed in a long-running environment
# like an industrial setting. This parameter sets whether or not
# the camera should be turned "on" at node startup time.
#
on_at_startup: $(arg on_at_startup)
#
# Specifies the use case to set on the camera at startup time.
# If the special use case of "-" (the default), no use case
# is set. You can always set the use case at runtime using the
# Config service.
#
initial_use_case: "$(arg use_case)"
</rosparam>
</node>
<!-- coord frame transform from Royale optical frame to ROS sensor frame -->
<node pkg="tf2_ros"
type="static_transform_publisher"
name="$(arg camera)_tf"
args="0 0 0 -1.5707963267948966 0 -1.5707963267948966 $(arg camera)_link $(arg camera)_optical_link"/>
</launch>