Page 1 of 1

Using ROS Turtlebot in VREP

Posted: 28 Jun 2013, 10:17
by ktjolsen
Hi,
My goal is to simulate iRobot's Roomba in VREP, and to this purpose I am currently trying to use an ROS node to simulate ROS Turtlebot in VREP. Specifically, I am thinking of using the KJunior body with Turtlebot "software".

When I try to run turtlebot_node, ROS tries to connect via USB to a real robot. This makes sense, as the code for turtlebot_node is:
class TurtlebotNode(object):
_SENSOR_READ_RETRY_COUNT = 5
def __init__(self, default_port='/dev/ttyUSB0', default_update_rate=30.0):
I am considering enabling remote API using simExtRemoteApiStart and then changing the default_port in the class TurtlebotNode. However - should there not be a better way to do this using ROS commands?

Re: Using ROS Turtlebot in VREP

Posted: 28 Jun 2013, 10:35
by coppelia
Hello,

not exactly sure what you mean. If using ROS, then you very probably don't have to use the remote API at the same time (well, you can, and sometimes this makes sense).

I didn't get the part where you mean changing the default_port in the class TurtlebotNode...

Cheers