How do I make a turtle mimic exact opposite of the first one?

asked 2018-11-28 15:05:56 -0600

Hyoungmin gravatar image

image description

This is the code I have, to have two turtles spawn, and have the second one mimic the first one (which is in the ros wiki tutorials), but have the second one do exact opposite of what the first one does.

E.g. the first one (inputted one) goes left, the second one goes right. the first one rotates left, the second one rotates right.

For the moving part, I figured if it spawns facing left, it would do that.

For the rotating part... I have no idea. If any advice can be given, it would be greatly appreciated.

I'm using ROS Kinetic atm.

edit retag flag offensive close merge delete