Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.73 KB | None | 0 0
  1. ar_pose_single (camera frame)
  2.  
  3. <launch>
  4.   <node pkg="rviz" type="rviz" name="rviz"
  5.    args="-d $(find ar_pose)/launch/live_single.rviz"/>
  6.   <node pkg="tf" type="static_transform_publisher" name="world_to_cam"
  7.    args="0 0 0.5 -1.57 0 -1.57 world camera 10" />
  8.   <node ns="camera" pkg="image_proc" type="image_proc" name="image_proc"/>
  9.   <node ns="camera" pkg="uvc_camera" type="uvc_camera_node" name="uvc_camera_node"
  10.    output="screen">
  11.  
  12.     <param name="width" type="int" value="320" />
  13.     <param name="height" type="int" value="240" />
  14.     <param name="fps" type="int" value="30" />
  15.     <param name="frame" type="string" value="camera" />
  16.     <param name="device" type="string" value="/dev/video0" />
  17.     <param name="camera_info_url" type="string"
  18.      value="file://$(find ar_pose)/camera_calibration.yaml" />
  19.   </node>
  20.  
  21.   <node name="ar_pose" pkg="ar_pose" type="ar_single" respawn="false"
  22.    output="screen">
  23.     <param name="marker_pattern" type="string"
  24.      value="$(find ar_pose)/data/4x4/4x4_19.patt"/>
  25.     <param name="marker_width" type="double" value="200"/>
  26.     <param name="marker_center_x" type="double" value="0.0"/>
  27.     <param name="marker_center_y" type="double" value="0.0"/>
  28.     <param name="threshold" type="int" value="100"/>
  29.     <param name="use_history" type="bool" value="true"/>
  30.   </node>
  31. </launch>
  32.  
  33.  
  34. ar_pose reverse: (marker frame)
  35. <launch>
  36.   <node pkg="rviz" type="rviz" name="rviz"
  37.    args="-d $(find ar_pose)/launch/live_reverse.rviz"/>
  38.   <node pkg="tf" type="static_transform_publisher" name="world_to_marker"
  39.    args="0 1 1 -1.57 3.14 -1.57 world ar_marker 10" />
  40.   <node ns="camera" pkg="image_proc" type="image_proc" name="image_proc"/>
  41.   <node ns="camera" pkg="uvc_camera" type="uvc_camera_node" name="uvc_camera_node"
  42.    output="screen">
  43.    
  44.     <param name="width" type="int" value="320" />
  45.     <param name="height" type="int" value="240" />
  46.     <param name="fps" type="int" value="30" />
  47.     <param name="frame" type="string" value="camera" />
  48.     <param name="device" type="string" value="/dev/video0" />
  49.     <param name="camera_info_url" type="string"
  50.      value="file://$(find ar_pose)/camera_test.yaml" />
  51.   </node>
  52.  
  53.   <node name="ar_pose" pkg="ar_pose" type="ar_single" respawn="false" output="screen">
  54.     <param name="marker_pattern" type="string" value="data/4x4/4x4_19.patt"/>
  55.     <param name="marker_width" type="double" value="152.4"/>
  56.     <param name="marker_center_x" type="double" value="0.0"/>
  57.     <param name="marker_center_y" type="double" value="0.0"/>
  58.     <param name="threshold" type="int" value="100"/>
  59.     <param name="use_history" type="bool" value="true"/>
  60.     <param name="reverse_transform" type="bool" value="true"/>
  61.   </node>
  62. </launch>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement