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

How to turn irobot create by exact angle using brown package?

asked 2013-04-06 15:53:28 -0500

shwgupte gravatar image

updated 2014-01-28 17:16:04 -0500

ngrennan gravatar image

I am trying to get an iRobot Create to turn by 90 degrees. I am using the irobot_create_2_1 driver. I am trying to subscribe to \odom topic to read the orientation but am not sure exactly which parameter gives the current angle. I know Create provides an opcode for wait_angle (opcode 157). Can I use this for turning using the brown driver?

edit retag flag offensive close merge delete

Comments

tryin to connect irobot using bam bluetooth module, but it returns "bad data" and "OSError: [Errno 11] Resource temporarily unavailable" on driver.py....plz help

Nouman Tahir gravatar image Nouman Tahir  ( 2014-11-05 07:41:29 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-04-07 00:18:34 -0500

fergs gravatar image

One way to do this, is to determine the heading between odom and base_link which is published by the driver. An example of this can be found here in albany-ros-pkg seminar2011/square_with_tf.py. This was an example piece of code we used to draw squares on the ground with that same driver, although it was last run 2 years ago so something might have changed in the driver or ROS since then.

edit flag offensive delete link more

Comments

Thanks so much for your reply. I tried using that code. However it does not make a perfect square, it overshoots the angle by quite a large amount. Are there any values I would need to tweak in the code?

shwgupte gravatar image shwgupte  ( 2013-04-07 07:24:46 -0500 )edit

It may be something very obvious but since I have never used python before, I am finding it difficult to understand. Thanks

shwgupte gravatar image shwgupte  ( 2013-04-07 07:25:07 -0500 )edit

The turning odometry on the create is pretty bad... honestly, +/- 20 degrees on a 90 degree angle is probably the best you can expect.

fergs gravatar image fergs  ( 2013-04-07 12:03:18 -0500 )edit

Question Tools

Stats

Asked: 2013-04-06 15:53:28 -0500

Seen: 916 times

Last updated: Apr 07 '13