Ask Your Question
0

moving a robot inside specific area

asked 2015-01-15 04:21:20 -0500

RSA_kustar gravatar image

I have a pioneer robot and I want to move it in the lab and I want to keep it in a square area. So when ever it want to cross that area it cant. I dont want to send a zero velocity to it so it will stuck in the boundry of the square.

Using the odom of the robot the start position is (0,0). I want the sqaure area is 2 by 2 and the pioneer starts from a corner or in the middle. When it reah the boundry it can rotate to inside direction of the square do it can move forward and backword.

The pioneer has topic RosAria/pose which is from type nav_msgs/Odometry ...

any suggestions or a code some one wrote for this

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-01-27 10:08:14 -0500

ReedHedges gravatar image

updated 2015-01-27 10:09:41 -0500

The robot is controlled by specifying desired velocity (translation and rotation) of the robot by publishing desired velocity to RosAria/cmd_vel (from a client, or for testing, from 'rostopic'), which you can change at any time. Do this while monitoring pose (and, eventually, sensor data as well) and you can make the robot move in a certain trajectory or pattern over time. You can start with basic proportional control and a state machine. As you approach the edge of the square, slow the robot down until stopped. Then turn (new state). When done turning, begin moving again.

edit flag offensive delete link more

Comments

Hi I am trying to move my Powerbot using RosAria and by following this tutorial. So far, although the goal seems to be "sent", the robot does not move. Does this have to do with the fact that I'm using RosAria? What can I do?

RND gravatar image RND  ( 2015-03-06 04:33:59 -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: 2015-01-15 04:21:20 -0500

Seen: 427 times

Last updated: Jan 27 '15