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

Revision history [back]

click to hide/show revision 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>

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>

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>

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>