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

how to get real robot position in XYZ with lidar?

asked 2020-08-13 22:30:37 -0500

Ridy gravatar image

hi guys, i'm new with ROS. how to get real robot odometry XYZ in the room by using lidar? right now i wanted to write simple code to move the roboto without IMU or Tick, just lidar. so basically i want Odometry data with Lidar.

my specs real robot is;

  1. YDLidar X4
  2. H bridge
  3. Raspberry pi 3B+
  4. 2 DC Motors

if you can help me i would really appreciate that, thank you very much.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-08-14 22:18:16 -0500

billy gravatar image

It won't do Z, but Hector mapping will allow you to map X,Y without encoders and the laser-scan-matcher can generate ODOM using laser scan.

But if your motors do not have any feedback, you need to really run the robot very slowly as the lidar is relatively slow and you'll be using the lidar essentially as the feedback for your motor control. I trust the motors have very steep gearing.

Do your self a favor and spend a few days going through the tutorials carefully. In the end it will save you a lot of time.

edit flag offensive delete link more

Comments

Hi thank you for helping me. i know scanmatcher can generate odom but i don't understand why my odom don't show a message. I try echo the odom but it's seem the odom didn't realise, it's showing nothing.

Ridy gravatar image Ridy  ( 2020-08-17 13:28:18 -0500 )edit
1

OK I owe you some clarification. The scan-matcher outputs the pose - not odom directly. You can calculate ODOM by evaluating the change in the pose in time. Depending on the reason you want ODOM, you may find having the pose directly is more convenient. Sorry for the confusion.

Read more here: http://wiki.ros.org/laser_scan_matcher

billy gravatar image billy  ( 2020-08-18 02:13:34 -0500 )edit

thank you so much, finally i can get the real robot position now :D.

Ridy gravatar image Ridy  ( 2020-08-18 03:37:18 -0500 )edit

Hi Ridy, i have the same. I don have motor encoder, but I see tutorial which have encoder. Can you help me?

Mr Tai gravatar image Mr Tai  ( 2021-04-28 02:19:37 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2020-08-13 22:30:37 -0500

Seen: 655 times

Last updated: Aug 14 '20