Skip to content

Commit ae1a6d1

Browse files
author
Benjamin Maidel
authored
Merge pull request #645 from ipa-bnm/head_cam_config
Head cam config
2 parents a93ac1e + a7a6f33 commit ae1a6d1

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

cob_bringup/drivers/usb_camera_node.launch

+3-6
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,14 @@
22
<launch>
33

44
<arg name="robot" default="$(optenv ROBOT !!NO_ROBOT_SET!!)"/>
5+
<arg name="pkg_hardware_config" default="$(find cob_hardware_config)"/>
56
<arg name="camera_name" default="usb_cam"/>
67

78
<node name="$(arg camera_name)" pkg="usb_cam" type="usb_cam_node" output="screen">
8-
<param name="video_device" value="/dev/video0"/>
9-
<param name="image_width" value="2048"/>
10-
<param name="image_height" value="1536"/>
11-
<param name="pixel_format" value="yuyv"/>
12-
<param name="camera_frame_id" value="$(arg camera_name)_link"/>
13-
<param name="framerate" value="3.5"/> <!-- at 2048x1536 3.6hz is maximum on hw -->
149
<param name="camera_name" value="$(arg camera_name)"/>
10+
<param name="camera_frame_id" value="$(arg camera_name)_link"/>
1511
<param name="camera_info_url" value="package://cob_calibration_data/$(arg robot)/calibration/cameras/$(arg camera_name).yaml"/>
12+
<rosparam command="load" file="$(arg pkg_hardware_config)/$(arg robot)/config/$(arg camera_name).yaml"/>
1613
</node>
1714

1815
</launch>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
video_device: "/dev/video0"
2+
image_width: 2048
3+
image_height: 1536
4+
pixel_format: yuyv
5+
framerate: 3.5 #at 2048x1536 3.6hz is maximum on hw
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
video_device: "/dev/video0"
2+
image_width: 1280
3+
image_height: 960
4+
pixel_format: yuyv
5+
framerate: 10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
diagnostics_name: head_cam
22
topics: [/head_cam/camera_info]
3-
hz: 3.5
3+
hz: 10.0
44
hzerror: 1

0 commit comments

Comments
 (0)