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

Revision history [back]

click to hide/show revision 1
initial version

In Turtlesim you'd have to write your own node that would detect collision based on turtle distance. However since your predator/prey code needs a node anyway, you can implement that in that node.

Turtlesim is meant as a toy for learning how to program, but it might be sufficient for your needs.

The advantage of stage and Gazebo are that much more complex robots can be represented, that they have an actual shape, and there can be an environment with walls. however detecting a collision and removing the prey would probably be at least as hard as in turtlesim.