Ask Your Question
0

How can I make a robot which could drive autonomously in a given map (made using hector slam and lidar) if i give it a ending point.

asked 2019-05-29 08:23:27 -0500

sajal gravatar image

updated 2019-05-29 19:02:16 -0500

jayess gravatar image

I'm making a robot using only 3 major parts (no other sensors) motors with encoders, raspberry Pi 3 and RPLidar A2M8. My progress is that I have the map.tif/trw (from rviz using hecor_slam). I know about the navigation package in ROS (finding pretty difficult to go through) and I have read what all data i need to communicate. I just want to know how and where to start after mapping. A list of steps or a detailed procedure would be really helpful and appreciated. Please share any helpful links.

edit retag flag offensive close merge delete

Comments

how did you connect raspberry to pc for navigation?

Usui gravatar imageUsui ( 2019-06-04 18:52:25 -0500 )edit

I have not yet started the navigation, but you can use vnc server or ssh to connect pc to rpi.

sajal gravatar imagesajal ( 2019-06-04 23:52:44 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2019-05-29 08:27:59 -0500

curi_ROS gravatar image

updated 2019-05-31 00:49:25 -0500

Please follow the Navigation Tutorials.

EDIT

I'm not aware of any such tutorial. Your motor driver should give you velocity values. You then need to calculate where the bot would be based on its speed, for e.g. if you have a bot that started at origin and is moving at 0.1 m/s in +x, then after 1 second you would update it's position from (0,0) at t=0, to (0.1,0) at t=1. You then need to combine this information of the bot's current velocity and current position in a chosen frame, and publish it at a desired rate. This tutorial should guide you through that.

edit flag offensive delete link more

Comments

@curi_ROS will I have to write my own code to publish the odometry data, or to send odometry data from motor to ros ans ros to motor? I have connected my motor directly to Rpi. So is there a tutorial available to publish odometry using Rpi through ROS.

sajal gravatar imagesajal ( 2019-05-30 00:17:13 -0500 )edit

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-05-29 08:23:27 -0500

Seen: 75 times

Last updated: May 31