ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
On robots.launch you are missing the tf_prefix
parameter for both robots. Use the robots.launch file below and then post your tf tree again.
<launch>
<param name="robot_description"
command="$(find xacro)/xacro $(find turtlebot3_description)/urdf/turtlebot3_waffle_pi.urdf.xacro" />
<group ns="robot1">
<param name="tf_prefix" value="robot1_tf" />
<include file="$(find gspn_framework_package)/ros/launch/multi_robot_new/one_robot.launch" >
<arg name="init_pose" value="-x -0.5 -y 0.5 -z 0" />
<arg name="robot_name" value="robot_1" />
</include>
</group>
<group ns="robot2">
<param name="tf_prefix" value="robot2_tf" />
<include file="$(find gspn_framework_package)/ros/launch/multi_robot_new/one_robot.launch" >
<arg name="init_pose" value="-x -0.5 -y 0.5 -z 0" />
<arg name="robot_name" value="robot_1" />
</include>
</group>
</launch>
2 | No.2 Revision |
On As mentioned by @Delb, in robots.launch you are missing the tf_prefix
parameter for both robots. Use the robots.launch file below and then post your tf tree again.
<launch>
<param name="robot_description"
command="$(find xacro)/xacro $(find turtlebot3_description)/urdf/turtlebot3_waffle_pi.urdf.xacro" />
<group ns="robot1">
<param name="tf_prefix" value="robot1_tf" />
<include file="$(find gspn_framework_package)/ros/launch/multi_robot_new/one_robot.launch" >
<arg name="init_pose" value="-x -0.5 -y 0.5 -z 0" />
<arg name="robot_name" value="robot_1" />
</include>
</group>
<group ns="robot2">
<param name="tf_prefix" value="robot2_tf" />
<include file="$(find gspn_framework_package)/ros/launch/multi_robot_new/one_robot.launch" >
<arg name="init_pose" value="-x -0.5 2 -y 0.5 1 -z 0" />
<arg name="robot_name" value="robot_1" value="robot_2" />
</include>
</group>
</launch>
3 | No.3 Revision |
As mentioned by @Delb, in robots.launch you are missing the tf_prefix
parameter for both robots. Use the robots.launch file below and then post your tf tree again.
<launch>
<param name="robot_description"
command="$(find xacro)/xacro $(find turtlebot3_description)/urdf/turtlebot3_waffle_pi.urdf.xacro" />
<group ns="robot1">
<param name="tf_prefix" value="robot1_tf" />
<include file="$(find gspn_framework_package)/ros/launch/multi_robot_new/one_robot.launch" >
<arg name="init_pose" value="-x -0.5 -y 0.5 -z 0" />
<arg name="robot_name" value="robot_1" />
</include>
</group>
<group ns="robot2">
<param name="tf_prefix" value="robot2_tf" />
<include file="$(find gspn_framework_package)/ros/launch/multi_robot_new/one_robot.launch" >
<arg name="init_pose" value="-x 2 -y 1 -z 0" />
<arg name="robot_name" value="robot_2" />
</include>
</group>
</launch>
4 | No.4 Revision |
As mentioned by @Delb, in robots.launch you are missing the tf_prefix
parameter for both robots. Use the robots.launch file below and then post your tf tree again.
<launch>
<param name="robot_description"
command="$(find xacro)/xacro $(find turtlebot3_description)/urdf/turtlebot3_waffle_pi.urdf.xacro" />
<group ns="robot1">
ns="robot_1">
<param name="tf_prefix" value="robot1_tf" />
<include file="$(find gspn_framework_package)/ros/launch/multi_robot_new/one_robot.launch" >
<arg name="init_pose" value="-x -0.5 -y 0.5 -z 0" />
<arg name="robot_name" value="robot_1" />
</include>
</group>
<group ns="robot2">
ns="robot_2">
<param name="tf_prefix" value="robot2_tf" />
<include file="$(find gspn_framework_package)/ros/launch/multi_robot_new/one_robot.launch" >
<arg name="init_pose" value="-x 2 -y 1 -z 0" />
<arg name="robot_name" value="robot_2" />
</include>
</group>
</launch>