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

How to make a turtle pursue other turtle?

asked 2013-10-01 10:44:34 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hey guys, I'm new on this issue (ROS system, I mean), and I know my question is so simple, but i'm having so much problems with it. I don't know how to make a turtle which pursue other turtle, this one teleoperated by turtle_teleop_key node. If someone can tell me how to do it, or just a clue, I'd be so grateful. Thank you

edit retag flag offensive close merge delete

Comments

Do you want the pursuing turtle to do so without receiving any teleoperation commands? If so, I say you would need a way to obtain the other turtle's position (for instance, through direct reporting) and implement a pose controller. I don't know any in ROS, but you can find the theory in books.

georgebrindeiro gravatar image georgebrindeiro  ( 2013-10-01 10:49:27 -0500 )edit

One turtle is teleoperated with turtlesim_teleop_key, and the other one has to pursue the first one. After reading all the tutorials from the ROS tutorials website, I don't know how I can give the position of the teleoperated turtle to the other turtle yet. Using topics is an option?

Irene.M gravatar image Irene.M  ( 2013-10-01 11:55:59 -0500 )edit

Yes! Each turtle has a /pose topic, which reports a turtlesim/Pose message

georgebrindeiro gravatar image georgebrindeiro  ( 2013-10-02 07:08:14 -0500 )edit

This sounds quite a bit like a homework assignment...

ahendrix gravatar image ahendrix  ( 2014-01-23 07:46:42 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-01-23 07:28:54 -0500

tfoote gravatar image

There is a tutorial which does this. http://wiki.ros.org/tf/Tutorials/Introduction%20to%20tf

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-10-01 10:44:34 -0500

Seen: 2,523 times

Last updated: Jan 23 '14