How to create multiple instances of robot from single urdf file?
How can I create multiple instances of robot from single urdf file?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
How can I create multiple instances of robot from single urdf file?
Asked: 2015-12-10 03:40:07 -0500
Seen: 1,279 times
Last updated: Dec 10 '15
How to correctly install ROS/Gazebo on AWS instances?
Gazebo world not reset on fresh launch
Gripper Controllers for Franka Panda in Gazebo Simulation
alwaysOn camera parameter Gazebo
applying texplore rl to mobile robot and arm
Can't send message from Simulink to ROS to control Kobuki robot in gazebo
If you mean in simulation, just spawn them many times. The best practice is to have the corresponding launchfile section within a namespace.
I think javier means that you can have a single URDF on the parameter server under multiple names (likely separated by namespaces). If each parameter has corresponding joint state information available (and a
robot_state_publisher
) then they will all be viewable in rviz.Alternatively, if you are interested in creating a single URDF that contains multiple instances of another URDF check out xacro. An example use case would be if you have a URDF for a robot arm, and you are interested in a robot that has two of these arms.
Yes, that is what I mean @jarvisschultz :)
I tried to spawn, following the tutorial on http://gazebosim.org/tutorials/?tut=r... I used the following command:rosrun gazebo_ros spawn_model -file
rospack find azcar_sim
/urdf/azcar.xacro -urdf -x 0 -y 0 -z 1 -model azcar_simBut the output comes as model already exists. (1/2)
Note that, one model is already there on gazebo that has been spawned using model database by writing in launch file. (2/2)