Using ROS Turtlebot in VREP

Typically: "How do I... ", "How can I... " questions
Post Reply
ktjolsen
Posts: 3
Joined: 18 Jun 2013, 07:41

Using ROS Turtlebot in VREP

Post 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?

coppelia
Site Admin
Posts: 10364
Joined: 14 Dec 2012, 00:25

Re: Using ROS Turtlebot in VREP

Post 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

Post Reply