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

Using Gazebo Simulator with ROSARIA

asked 2017-03-15 08:49:57 -0600

bongzaseko gravatar image

In the tutorial in http://wiki.ros.org/ROSARIA/Tutorials... on "How to Use ROSARIA", under the section "Using MobileSim simulator", it is stated that for more fully featured simulation, one must use stdr_simulator, Stage or Gazebo instead. However details on how to go about using these simulators with ROSARIA are not given.

Please assist me on how to go about doing this, particularly using Gazebo with ROSARIA. I have a Pioneer3AT simulation running in Gazebo, but when I attempt running the ROSARIA node, it returns the error:

bongzaseko@bongzaseko-OptiPlex-9020:~/GoogleDrive/ros/rosaria/catkin_ws$ rosrun rosaria RosAria Connnecting to robot using TCP connection to localhost:11311... Connected to remote host localhost through tcp.

Syncing 0 No packet. Syncing 0 No packet. Syncing 0 No packet. Syncing 0 No packet. Robot may be connected but not open, trying to dislodge. Syncing 0 No packet. Robot may be connected but not open, trying to dislodge. Syncing 0 No packet. Could not connect, no robot responding. Failed to connect to robot.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-03-20 08:50:00 -0600

ReedHedges gravatar image

updated 2017-03-20 08:50:15 -0600

The reason RosAria works with MobileSim is that MobileSim emulates the robot's controller firmware interface, so the interface between RosAria and MobileSim is the same as the interface between RosAria and a real robot. Gazebo and the other simulators operate differently, and replace RosAria. See the Gazebo documentation for information on how it works and how to use it.

edit flag offensive delete link more

Comments

Thanks Reed. I thought the Gazebo simulator would also emulate the ARCOS firmware and be accessible via ARIA for client applications. I didn't know that it completely replaces it. What I need is to have a mirrored implementation of algorithms on both the Gazebo Simulation and the actual robot.

bongzaseko gravatar image bongzaseko  ( 2017-03-21 05:06:40 -0600 )edit

Your client nodes with your application logic or higher level control implementations can be the same if they use the standard interfaces to interact with both ROSARIA and Gazebo (e.g. cmd_vel, pose, and other comon topics.)

ReedHedges gravatar image ReedHedges  ( 2017-03-24 08:50:55 -0600 )edit

OK, Please clarify for me how I can do that since the ROS topics my client nodes have to subscribe to or publish on for the Gazebo simulation and the actual robot are different(or maybe more properly - have different namespaces).

bongzaseko gravatar image bongzaseko  ( 2017-03-24 08:59:18 -0600 )edit

OK, I think I get you now, so it is something to do with manipulating the namespaces of the topics in the code, probably through relative names?

bongzaseko gravatar image bongzaseko  ( 2017-03-24 09:09:27 -0600 )edit

You can rename topics in ROS, this is usually called "remapping" the topic name. Search here or the ROS wiki.

ReedHedges gravatar image ReedHedges  ( 2017-03-24 09:44:21 -0600 )edit

Alright, that clears it, thanks Reed

bongzaseko gravatar image bongzaseko  ( 2017-03-24 10:03:51 -0600 )edit

Question Tools

Stats

Asked: 2017-03-15 08:49:57 -0600

Seen: 670 times

Last updated: Mar 20 '17