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

Use leddar sensor with Local_map package

asked 2016-09-22 17:39:22 -0500

jmrrosa gravatar image

updated 2016-09-22 17:49:53 -0500

Hi everyone, I tried to run the local_map package to get a occupation grid from the laser scan sensor (Leddar) but when i tried to run the package it doesn't construct the map... I tried the same package with the Laser msg from Kinect and it work very well. Do i need to do some changes on the message published by the Leddar package? Does anyone were able to use Leddar to map the local environment? Thanks

edit retag flag offensive close merge delete

Comments

We'll need more information to be able to help. The leddar is pretty low resolution to do mapping but I guess it should work with local_map. Are you sure the leddar is outputting data? You can make sure by doing rostopic echo /scan

Airuno2L gravatar image Airuno2L  ( 2016-09-23 07:03:58 -0500 )edit

Yes Leddar is outputting data. I solve the question and i post the response to my own question. I know that leddar have low resolution, but it will basically complete the other sensors to do the mapping. I will use just a local map because i only need to map the environment around the platform.

jmrrosa gravatar image jmrrosa  ( 2016-09-23 09:03:35 -0500 )edit

Please correct me if I'm not using the best approach. Thanks!

jmrrosa gravatar image jmrrosa  ( 2016-09-23 09:04:50 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-09-23 07:00:26 -0500

jmrrosa gravatar image

updated 2016-09-23 07:06:17 -0500

Hello again!

So i figured out what was the problem. So with the Kinect you dont need to publish the tf but with the leddar you have to declare the tf relationship from the local_map (that i assume to be the parent) and the leddar frame.

In the launch file that you need to create just put the following code (if i have any error please correct me!):

<node pkg="tf" type="static_transform_publisher" name="link1_broadcaster" args="1 0 0 0 0 0 1 local_map/local_map /leddar 100" />

Once you have done it you will need to change in the //Construct LaserScan message of the file leddar.cpp the time parameter to

msg.header.stamp = ros::Time(0);

And it's done!

edit flag offensive delete link more

Comments

Glad you figured it out. You can accept you answer as the correct one by checking the check mark above to close this out.

Airuno2L gravatar image Airuno2L  ( 2016-09-23 09:45:00 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2016-09-22 17:39:22 -0500

Seen: 563 times

Last updated: Sep 23 '16