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

Parallel alignment of robot with a wall

asked 2021-07-24 20:27:28 -0500

sisko gravatar image

updated 2021-07-25 11:39:13 -0500

I need advise on how to dynamically rotate my robot to an exact angle so it can travel parallel to a wall.

My robot is successfully stopping half a meter from the wall in my simulation and at that point I need to turn it so as to make the robot move beside the wall with a consistent gap between it and the robot.

My video shows everything I just descibed ( apologies for the 2+ minutes of slow robotic manuvering ).

Is there a technic I can use to determine when my robot is exactly parallel with the wall ?

I thought of turning the robot from it's starting position and publishing to cmd_vel so that it travels to the wall in a straight line. But I face the same problems at the begining and end of that straight line journey. Especially at the start, the exact value to issue to twist.angular.z for the robot to be aimed at the wall.

I also considered using odometry to find the robots standing orientation before it begins its manuever and somehow use that to determine how far the robot should turn when it reaches the wall --- in order for the robot to be facing the same general direction. However, the robot is unlikely to be perfectly aligned in the desired direction before it begins its move towards the wall. So using that orientation data might make the rotation flawed.

Advise would be very appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-07-25 07:53:29 -0500

Ktysai gravatar image

In an ideal world with no slippage your solution might work.

You need more sensors for a real life scenario, an IMU, an LIDAR must be used in order to get the rotation of the robot more accurately and to get the distance from the robot to the wall.

Btw, the video require some kind of sign in.

edit flag offensive delete link more

Comments

Hi @Ktysai. Thanks for your comment and sorry about the video. I updated it so you should be able to view it now.

sisko gravatar image sisko  ( 2021-07-25 11:40:50 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2021-07-24 20:27:28 -0500

Seen: 477 times

Last updated: Jul 25 '21