ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Thanks for your answer, Miquel. I changed the launch file to the code shown below. There are no change in output. Running rosrun rqt_graph rqt_graph the nodes seem all connected. rosnode list show:

/stereo/left
/stereo/right
/stereo/stereo_image_proc
/stereo_cam

and rosnode info stereo_cam

Node [/stereo_cam]
Publications: 
 * /rosout [rosgraph_msgs/Log]

Subscriptions: 
 * /stereo/right/image [unknown type]
 * /stereo/left/image [unknown type]
 * /stereo/disparity [stereo_msgs/DisparityImage]

Services: 
 * /stereo_cam/set_logger_level
 * /stereo_cam/get_loggers


contacting node http://sas2-truck:46038/ ...
Pid: 2161
Connections:
 * topic: /rosout
    * to: /rosout
    * direction: outbound
    * transport: TCPROS
 * topic: /stereo/disparity
    * to: /stereo/stereo_image_proc (http://sas2-truck:44066/)
    * direction: inbound
    * transport: TCPROS

Part of the launch file:

<group ns="stereo">  

  <!-- Left camera node --> 
  <node name="left" pkg="prosilica_camera" type="prosilica_node" output="screen" >
    <param name="ip_address" type="str" value="192.168.101.2" />
    <param name="frame_id" value="left_optical_frame" />
    <rosparam command="load" file="cam_settings_1350_Kollmorgen.yaml" />
   <remap from="image_raw" to="/left/image_raw" />
   <remap from="camera_info" to="/left/camera_info" /> 
 </node>


  <!-- Right camera node -->
  <node name="right" pkg="prosilica_camera" type="prosilica_node" output="screen" >
    <param name="ip_address" type="str" value="192.168.102.2" />
    <param name="frame_id" value="right_optical_frame" />
    <rosparam command="load" file="cam_settings_1350_Kollmorgen.yaml" /> 
   <remap from="image_raw" to="/right/image_raw" />
   <remap from="camera_info" to="/right/camera_info" /> 
 </node> 


<node name="stereo_image_proc" pkg="stereo_image_proc" type="stereo_image_proc" output="screen"  > 
<param name="approximate_sync" value="0.05" />
</node>
</group>


<node name="stereo_cam" pkg="image_view" type="stereo_view" output="screen" >
<param name="queue_size" value="500" />
<param name="approximate_sync" value="True" />
</node>

Thanks for your answer, Miquel. I changed the launch file to the code shown below. There are no change in output. Running rosrun rqt_graph rqt_graph the nodes seem all connected. rosnode list show:

/stereo/left
/stereo/right
/stereo/stereo_image_proc
/stereo_cam

and rosnode info stereo_cam

Node [/stereo_cam]
Publications: 
 * /rosout [rosgraph_msgs/Log]

Subscriptions: 
 * /stereo/right/image [unknown type]
 * /stereo/left/image [unknown type]
 * /stereo/disparity [stereo_msgs/DisparityImage]

Services: 
 * /stereo_cam/set_logger_level
 * /stereo_cam/get_loggers


contacting node http://sas2-truck:46038/ ...
Pid: 2161
Connections:
 * topic: /rosout
    * to: /rosout
    * direction: outbound
    * transport: TCPROS
 * topic: /stereo/disparity
    * to: /stereo/stereo_image_proc (http://sas2-truck:44066/)
    * direction: inbound
    * transport: TCPROS

Part of the launch file:

<group ns="stereo">  

  <!-- Left camera node --> 
  <node name="left" pkg="prosilica_camera" type="prosilica_node" output="screen" >
    <param name="ip_address" type="str" value="192.168.101.2" />
    <param name="frame_id" value="left_optical_frame" />
    <rosparam command="load" file="cam_settings_1350_Kollmorgen.yaml" />
   <remap from="image_raw" to="/left/image_raw" />
   <remap from="camera_info" to="/left/camera_info" /> 
 </node>


  <!-- Right camera node -->
  <node name="right" pkg="prosilica_camera" type="prosilica_node" output="screen" >
    <param name="ip_address" type="str" value="192.168.102.2" />
    <param name="frame_id" value="right_optical_frame" />
    <rosparam command="load" file="cam_settings_1350_Kollmorgen.yaml" /> 
   <remap from="image_raw" to="/right/image_raw" />
   <remap from="camera_info" to="/right/camera_info" /> 
 </node> 


<node name="stereo_image_proc" pkg="stereo_image_proc" type="stereo_image_proc" output="screen"  > 
<param name="approximate_sync" value="0.05" />
</node>
</group>


<node name="stereo_cam" pkg="image_view" type="stereo_view" output="screen" >
<param name="queue_size" value="500" />
<param name="approximate_sync" value="True" />
</node>