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

Converting sonar ranges to laserscan message

asked 2017-06-29 04:28:34 -0500

أسامة الادريسي gravatar image

Hi,

In my project i should do mapping and localization using only ultrasonic sensor and IMU. Most of mapping packages in ros use laserscan message, the ultrasonic sensor return a range message.

I am using 10 HC-SR04 ultrasonic sensor. ROS kinetic ubuntu 16.04. MPU-6050.

How can i construct a laser scanner message using the different readings sonar sensor ???

edit retag flag offensive close merge delete

Comments

Humpelstilzchen gravatar image Humpelstilzchen  ( 2017-06-29 05:56:38 -0500 )edit

This is not a duplication

أسامة الادريسي gravatar image أسامة الادريسي  ( 2017-06-29 13:58:01 -0500 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2017-06-29 09:09:44 -0500

David Lu gravatar image
edit flag offensive delete link more

Comments

thank you very much, I hope this package can help me.

أسامة الادريسي gravatar image أسامة الادريسي  ( 2017-06-29 13:56:31 -0500 )edit
1

answered 2017-10-24 02:07:41 -0500

RiccardoGiubilato gravatar image

Here i convert just one range message to laser scan: https://github.com/RiccardoGiubilato/... . Please take a look at the "sonar_to_laser" node, hope it helps!

edit flag offensive delete link more

Comments

Thank you very much for your help

أسامة الادريسي gravatar image أسامة الادريسي  ( 2017-10-24 11:33:36 -0500 )edit

I don't think that this is a good idea. Also the question is: Why?

Humpelstilzchen gravatar image Humpelstilzchen  ( 2017-10-30 09:43:26 -0500 )edit

@Humpelstilzchen do you have any other proposal to solve the problem ??

أسامة الادريسي gravatar image أسامة الادريسي  ( 2017-11-02 13:13:13 -0500 )edit

See the answer of David Lu.

Humpelstilzchen gravatar image Humpelstilzchen  ( 2017-11-03 10:15:09 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-06-29 04:28:34 -0500

Seen: 3,687 times

Last updated: Oct 24 '17