Ask Your Question
1

pointcloud_to_laserscan

asked 2013-02-09 22:57:27 -0600

marwa gravatar image

Hi,

how can i start pointcloud_to_laserscan package ?

thanks

edit retag flag offensive close merge delete

Comments

Depends on what you want to do with it - what exactly are you trying to do?

allenh1 gravatar imageallenh1 ( 2013-02-11 04:18:25 -0600 )edit

@allenh1, I want to run SLAM and I've installed openni_camera and openni_launch till now, I want to install pcl_to_laserscan and then install either gmapping or hectorSLAM.

freadx gravatar imagefreadx ( 2013-03-22 22:43:05 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
5

answered 2013-02-09 23:55:42 -0600

updated 2013-02-11 10:41:10 -0600

tfoote gravatar image

This launch file might help

<launch>
<!-- kinect and frame ids -->
<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>
edit flag offensive delete link more

Comments

@shade@tfoote How do I use this launch file? Where do I keep it?

freadx gravatar imagefreadx ( 2013-03-22 22:43:25 -0600 )edit
1

answered 2013-02-09 23:07:34 -0600

Hansg91 gravatar image

By running the node and publishing your clouds to the cloud topic. The scans will be published on the scan topic.

edit flag offensive delete link more
1

answered 2013-02-10 09:34:26 -0600

Chad Rockey gravatar image

You might have an easier time (and use less CPU) if you use depthimage_to_laserscan.

roslaunch openni_launch openni.launch rosrun depthimage_to_laserscan depthimage_to_laserscan image:=/camera/depth/image_raw

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2013-02-09 22:57:27 -0600

Seen: 585 times

Last updated: Feb 11 '13