Home | Tutorials | Wiki | Issues
Ask Your Question

Simulating multiple rbcar's in Gazebo

asked 2017-07-03 03:58:35 -0600

abdallahat gravatar image

I try to run multiple rbcar's on one ROS Master and tried to start a car as a group but the Controller does not start.

I created a launch file for multiple rbcar's which looks like this:

<?xml version="1.0"?>

<!-- roslaunch arguments -->
<arg name="debug" default="false"/>
<arg name="gui" default="true"/>

<!-- We resume the logic in empty_world.launch, changing only the name of the world to be launched -->
<include file="$(find gazebo_ros)/launch/empty_world.launch">
<arg name="world_name" value="$(find rbcar_gazebo)/worlds/ba_city.world"/>
<arg name="debug" value="$(arg debug)" />
<arg name="gui" value="$(arg gui)" />
<arg name="paused" value="false"/>
<arg name="use_sim_time" value="true"/>
<arg name="headless" value="false"/>

<group ns="car1">
<include file="$(find rbcar_gazebo)/launch/rbcar.launch"/>


and includes rbcar.launch:

<?xml version="1.0"?>

<!-- rbcar_control launch file -->
<include file="$(find rbcar_control)/launch/rbcar_control.launch" />
<include file="$(find rbcar_robot_control)/launch/rbcar_robot_control.launch"/>

<!-- Load the URDF into the ROS Parameter Server -->
<param name="robot_description"
       command="$(find xacro)/xacro.py '$(find rbcar_description)/robots/rbcar.urdf.xacro'" />

<!-- Call a python script to the run a service call to gazebo_ros to spawn a URDF robot --> 
<node name="urdf_spawner" pkg="gazebo_ros" type="spawn_model" respawn="false" output="screen"
    args="-urdf -model rbcar -param robot_description -z 1"/>


Do somebody know a solution for my Problem ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-11-16 00:15:16 -0600

Was working on the sample problem. I fixed it by changing a bunch of name spaces. Take a look at multiple_car.launch in rbcar_gazebo here:



Made changes to both repos for it to work.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-07-03 03:58:35 -0600

Seen: 268 times

Last updated: Nov 16