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

Suppressing 3D cloud to 2D cloud

asked 2012-02-28 11:03:41 -0600

karthik gravatar image

updated 2012-03-03 04:42:32 -0600

Hi, I used the gmapping using turtlebot to create the map of the environment. I understand that the turtlebot creates a fake laser which is suppressed 2D cloud from the kinect. Assuming that the kinect tf frame is such that ^ is x and > is y and into the screen is z. I want a 2D cloud in yz plane similar to laser. But every point in this plane should give the obstacle that is present in varying x also.

For example if there is a hanging obstacle from x = 4 to 5, with y = -1 to 1 and z = 2. Then fake laser cloud should have cloud in yz plane at y= - 1 to 1.

My question here is: a) Is this what done in the fake laser included in the turtlebot launch?

or b) is there any other package that does this?

or c) will this work in real time if i wrote it on my own?

Any suggestions and pointers will be much appreciated!!!

Thanks, Karthik


What does the min-height n max-height in the launch file signify?

 <!-- Fake Laser -->
  <node pkg="nodelet" type="nodelet" name="kinect_laser" args="load pointcloud_to_laserscan/CloudToScan openni_manager" respawn="true"
  output="screen">
    <param name="output_frame_id" value="/kinect_depth_frame"/>
    <!-- heights are in the (optical?) frame of the kinect -->
    <param name="min_height" value="-0.15"/>
    <param name="max_height" value="0.15"/>
    <remap from="cloud" to="/cloud_throttled"/>
  </node>

I have written as piece of code that results in 640 valid cloud points and the rest to be nans. I give this as the input to the throttle instead of the /camera/depth/points. Its not helping me out as the laser scan at the end is very minimal and the scan matching is failing. Any suggestions ??

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-02-28 12:35:15 -0600

tfoote gravatar image

a) The fake laser sort of does not do this.
b) If you tweak the parameters to look over the whole range you want to look for obstacles it can do what you want. Assuming the obstacles are still in the Kinect field of view. c) If you rewrote it on your own it could do this in realtime, but is not necessary. See b.

edit flag offensive delete link more

Comments

Tweak here you mean param setting in the launch file. Because even for the fake laser a nodelet is written. Could you elaborate on how to do that. Thanks for the help

karthik gravatar image karthik  ( 2012-02-29 05:53:11 -0600 )edit

I have edit the question a bit

karthik gravatar image karthik  ( 2012-02-29 08:05:02 -0600 )edit

The min and max heights are the range where points will be considered inside the laser scan. All other points will be ignored.

tfoote gravatar image tfoote  ( 2012-02-29 08:17:50 -0600 )edit

I have updated my question a bit again.

karthik gravatar image karthik  ( 2012-03-03 04:42:57 -0600 )edit

Most scan matches have trouble with small scans. Especially with small fields of view. You will likely have to develop ways to assist the algorithm specific to your use case.

tfoote gravatar image tfoote  ( 2012-03-04 17:53:21 -0600 )edit

thanks :)

karthik gravatar image karthik  ( 2012-03-04 23:00:27 -0600 )edit

Question Tools

Stats

Asked: 2012-02-28 11:03:41 -0600

Seen: 438 times

Last updated: Mar 03 '12