rviz pose display does not moving

asked 2016-05-11 21:56:26 -0600

wendyZzzz gravatar image

updated 2016-05-12 02:08:50 -0600

Hi all : I'm open the stereo web cameras using uvc_camera stereo_nodelet.launch

<launch>
  <node pkg="nodelet" type="nodelet" name="camera_process" args="manager" output="screen"/>

  <node pkg="nodelet" type="nodelet" name="uvc_camera_stereo" args="load uvc_camera/StereoNodelet /camera_process" output="screen">
    <param name="width" type="int" value="960" />
    <param name="height" type="int" value="720" />
    <param name="fps" type="int" value="30" />
    <param name="frame" type="string" value="wide_stereo" />

    <param name="auto_focus" type="bool" value="False" />
    <param name="focus_absolute" type="int" value="0" />
    <!-- other supported params: auto_exposure, exposure_absolute, brightness, power_line_frequency -->

    <param name="left/device" type="string" value="/dev/video0" />
    <param name="right/device" type="string" value="/dev/video1" />
    <param name="left/camera_info_url" type="string" value="file://$(find uvc_camera)/logitech_c120_left.yaml" />
    <param name="right/camera_info_url" type="string" value="file://$(find uvc_camera)/logitech_c120_right.yaml" />
  </node>
</launch>

And then I run the launch file :

<?xml version="1.0"?>
<launch>
  <param name="use_sim_time" value="false" />
  <node ns="/" name="stereo_image_proc" pkg="stereo_image_proc" type="stereo_image_proc" clear_params="true" output="screen">
    <remap from="/left/image_raw" to="/left/image_raw" />
    <remap from="/left/camera_info" to="/left/camera_info" />
    <remap from="/right/image_raw" to="/right/image_raw" />
    <remap from="/right/camera_info" to="/right/camera_info" />
    <param name="queue_size" value="10" />
    <param name="disparity_range" value="64" />
  </node>

  <node pkg="viso2_ros" type="stereo_odometer" name="stereo_odometer" output="screen">
    <remap from="stereo" to="/"/>
    <remap from="/image" to="/image_rect"/>

    <remap from="/left/camera_info" to="/left/camera_info" />
    <remap from="/right/camera_info" to="/right/camera_info" />
    <param name="base_link_frame_id" value="base_link" />
    <param name="ref_frame_change_method" value="1" />
    <param name="approximate_sync" type="bool" value="True" />
    <param name="queue_size" type="int" value="10" />
    <param name="refinement" type="int" value="2" />
    <param name="match_disp_tolerance" type="int" value="20"/> 
  </node>

    <node pkg="tf" type="static_transform_publisher" name="bla" args="0.0 0.0 0.0 0.0 0.0 -1.571  /base_link /stereo_forward_optical 50">
  </node>

</launch>

But I got this error:

[ WARN] [1463020055.372492423]: The tf from 'base_link' to 'camera' does not seem to be available, will assume it as identity!
[ WARN] [1463020055.372589156]: Visual Odometer got lost!

Lastly I open the rviz : the Pose display does not move at all.

This is my rostopic list of my camera :

/camera_process/bond
/left/camera_info
/left/image_raw
/left/image_raw/compressed
/left/image_raw/compressed/parameter_descriptions
/left/image_raw/compressed/parameter_updates
/left/image_raw/compressedDepth
/left/image_raw/compressedDepth/parameter_descriptions
/left/image_raw/compressedDepth/parameter_updates
/left/image_raw/theora
/left/image_raw/theora/parameter_descriptions
/left/image_raw/theora/parameter_updates
/right/camera_info
/right/image_raw
/right/image_raw/compressed
/right/image_raw/compressed/parameter_descriptions
/right/image_raw/compressed/parameter_updates
/right/image_raw/compressedDepth
/right/image_raw/compressedDepth/parameter_descriptions
/right/image_raw/compressedDepth/parameter_updates
/right/image_raw/theora
/right/image_raw/theora/parameter_descriptions
/right/image_raw/theora/parameter_updates
/rosout
/rosout_agg

i would like to ask you, how do i solve this problem. i want to let the pose display able to detect my stereo camera movement

edit retag flag offensive close merge delete