Ask Your Question
0

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

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

shwgupte gravatar image

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

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 imageNouman Tahir ( 2014-11-05 07:41:29 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

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 imageshwgupte ( 2013-04-07 07:24:46 -0600 )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 imageshwgupte ( 2013-04-07 07:25:07 -0600 )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 imagefergs ( 2013-04-07 12:03:18 -0600 )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

Stats

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

Seen: 682 times

Last updated: Apr 07 '13