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

Problem launching pointcloud to laserscan

asked 2011-07-14 15:42:06 -0500

lakshmen gravatar image

updated 2011-07-21 02:15:10 -0500

I am not able to launch the pointcloud to laserscan. I did this following steps:

1)launched the openni_camera by typing roslaunch openni_camera openni_node.launch

2)launched the pointcloud to laserscan by typing roslaunch pointcloud_to_laserscan kinect_laser.launch

3)ran rviz by typing rosrun rviz rviz

I am able to see the point cloud but I am not able to see the laser_scan. I was referring to this question,http://answers.ros.org/question/417/how-to-setup-pointcloud_to_laserscan. I am supposed to see /scan topic but i am not able to see it.

Am i supposed to change /openni_depth_frame?

Or what steps i shld take? Any suggestions?

Just like to check with you all.. is this sometime like this i should get?C:\fakepath\Screenshot-RViz-1.png

edit retag flag offensive close merge delete

Comments

yep this is what pointcloud_to_laserscan should do. If with "don't get the whole plane" you mean construct a map using the laser scan information you'lll like to read the gmapping tutorials.
Bemfica gravatar image Bemfica  ( 2011-07-21 04:22:04 -0500 )edit
what i am supposed to get is a set of points not a laser scan(or a plane).Am i right to say that?
lakshmen gravatar image lakshmen  ( 2011-07-21 05:19:07 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2011-07-15 05:40:23 -0500

Bemfica gravatar image

You need to create a launch file which could look like this:

<launch>
  <!-- kinect nodes -->
  <include file="$(find openni_camera)/launch/openni_node.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="/openni_depth_frame"/>
    <remap from="cloud" to="cloud_throttled"/>
  </node>
</launch>

save as test.launch and roslaunch it. Then open rviz, set the fixed frame to /openni_depth_frame and add a 'Laser Scan' display. You will see the /scan topic. Just select it and should work fine.

edit flag offensive delete link more

Comments

thanks i got it... but it is only a few dots... dun get the whole plane...
lakshmen gravatar image lakshmen  ( 2011-07-17 13:41:49 -0500 )edit
0

answered 2011-07-14 19:08:04 -0500

lakshmen gravatar image

After following this answer [http://kinect-with-ros.976505.n3.nabble.com/Ros-kinect-How-to-use-pointcloud-to-laserscan-in-Diamondback-td2774007.html, I am able to get the topic scan but i am not able to get the data out into RViz.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2011-07-14 15:42:06 -0500

Seen: 2,410 times

Last updated: Jul 21 '11