Error in Rviz with Laserscan: says it dropped 100.00% of messages so far [closed]

asked 2013-04-17 03:17:09 -0500

tkrugg gravatar image

updated 2016-10-24 08:34:42 -0500

ngrennan gravatar image

I am trying to visualize a fake laser scan using pointcloud and rviz. I made a launch file that seems to work.

<launch>
   <!-- kinect nodes -->
   <include file="$(find openni_launch)/launch/openni.launch"/>

   <!-- openni_manager -->

  <node pkg="nodelet" type="nodelet" name="openni_manager" output="screen" respawn="true" args="manager"/>

  <!-- throttling -->
  <node pkg="nodelet" type="nodelet" name="pointcloud_throttle" args="load pointcloud_to_laserscan/CloudThrottle openni_manager">
    <param name="max_rate" value="2"/>
    <remap from="cloud_in" to="/camera/depth/points"/>
    <remap from="cloud_out" to="cloud_throttled"/>
  </node>

  <!-- fake laser -->
  <node pkg="nodelet" type="nodelet" name="kinect_laser" args="load pointcloud_to_laserscan/CloudToScan openni_manager">
    <param name="output_frame_id" value="/camera_depth_frame"/>
    <remap from="cloud" to="cloud_throttled"/>
  </node>
</launch>

When launching

roslaunch pointcloud_to_laserscan openni_laser.launch

I do have a /scan topic and I can echo it to sees there are values published.

and then when I do rosrun rviz rviz I can see a perfect pointcould. I set Laserscan on /scan topic but it doesn't seem to receive any message. In fact, it says in the terminal that

[ WARN] [1366201830.911211858]: MessageFilter [target=/camera_depth_frame ]: Dropped 100.00% of messages so far. Please turn the [ros.rviz.message_notifier] rosconsole logger to DEBUG for more information.

Could anyone please help find the problem?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-12-12 01:21:49.545213

Comments

Have you tried setting the fixed frame in rviz to /camera_depth_frame? Are you working with live-data or recorded data from a bag file? Is your tf-tree ok?

Ben_S gravatar image Ben_S  ( 2013-04-17 04:16:12 -0500 )edit