Comments (1)
Managed to fix it myself
Multirobot launch file
<launch>
<!-- BEGIN ROBOT 1-->
<group ns="rosbot1">
<include file="$(find rosbot_description)/launch/single_rosbot.launch" >
<arg name="init_pose" value="-x -10 -y -10 -z 0 -R 0 -P 0 -Y 0" />
<arg name="tf_prefix" value="rosbot1"/>
</include>
</group>
<!-- BEGIN ROBOT 2-->
<group ns="rosbot2">
<include file="$(find rosbot_description)/launch/single_rosbot.launch" >
<arg name="init_pose" value="-x -10 -y 0 -z 0 -R 0 -P 0 -Y 0" />
<arg name="tf_prefix" value="rosbot2"/>
</include>
</group>
<!-- BEGIN ROBOT 2-->
<group ns="rosbot3">
<include file="$(find rosbot_description)/launch/single_rosbot.launch" >
<arg name="init_pose" value="-x 0 -y -10 -z 0 -R 0 -P 0 -Y 0" />
<arg name="tf_prefix" value="rosbot3"/>
</include>
</group>
</launch>
Robot instance launch file
<launch>
<arg name="tf_prefix"/>
<arg name="init_pose"/>
<!-- Load the joint space controller -->
<rosparam command="load" file="$(find joint_state_controller)/joint_state_controller.yaml" />
<node name="joint_state_controller_spawner" pkg="controller_manager" type="spawner" output="screen" args="joint_state_controller" />
<!-- load the model of the robot" -->
<param name="robot_description" command="$(find xacro)/xacro '$(find rosbot_description)/urdf/rosbot.xacro' robot_namespace:=$(arg tf_prefix)"/>
<!-- Spawn the robot_state_publisher with the desired tf_prefix -->
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" output="screen">
<param name="tf_prefix" value="$(arg tf_prefix)"/>
</node>
<!-- Spawn the robot in the desired pose given by "init_pose" variable" -->
<node name="rosbot_spawn" pkg="gazebo_ros" type="spawn_model" output="screen" args="$(arg init_pose) -urdf -param robot_description -model $(arg tf_prefix)"/>
<node pkg="tf" type="static_transform_publisher" name="maplink" args="0 0 0 0 0 0 map $(arg tf_prefix)/map 100"/>
</launch>
from rosbot_ros.
Related Issues (20)
- Cannot flash new firmware HOT 5
- Error in README.md noetic branch HOT 1
- migration from ignition HOT 4
- Set versions of repositorys in .repos file to a tag or commit instead of branches HOT 1
- IMU in Gazebo Fortress not working HOT 7
- Invalid parameter "use_gpu" HOT 3
- [Humble] colors/image_raw has a different size than depth/image_raw HOT 1
- multiple node names range HOT 2
- samples of laser scan data HOT 1
- Cannot launch simulations HOT 1
- Cannot lauch rosbot gazebo sim HOT 2
- Running Ros2 Humble simulation for the Rosbot with ignition-gazebo HOT 6
- rosbot_bringup failure HOT 4
- camera latency HOT 2
- Problem launching Gazebo from docker HOT 12
- Issue seeing topics in topic list ROS1 vs ROS2 HOT 2
- missing link for depth camera in simulation, broken robot_description HOT 4
- Noetic Simulation HOT 4
- Depth Camera Limit HOT 4
- I have a rosbot problem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rosbot_ros.