Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build tree: child link [base_link] of joint [world_joint] not found #42

Open
MuhammadUmarAnjum opened this issue Mar 17, 2022 · 1 comment

Comments

@MuhammadUmarAnjum
Copy link

Hi all hope you all are doing great.

I have this error:

not single time but multiple times. also some more:

[robot_state_publisher-4] process has died [pid 10139, exit code 255, cmd /opt/ros/kinetic/lib/robot_state_publisher/robot_state_publisher __name:=robot_state_publisher __log:=/home/ros/.ros/log/eed9c1bc-a5ca-11ec-a955-d80f997b25c9/robot_state_publisher-4.log]. log file: /home/ros/.ros/log/eed9c1bc-a5ca-11ec-a955-d80f997b25c9/robot_state_publisher-4.log [ur5_mp-14] process has died [pid 10216, exit code 1, cmd /home/ros/ur_ws/src/ur5_ROS-Gazebo/ur5_mp.py /follow_joint_trajectory:=/arm_controller/follow_joint_trajectory __name:=ur5_mp __log:=/home/ros/.ros/log/eed9c1bc-a5ca-11ec-a955-d80f997b25c9/ur5_mp-14.log]. log file: /home/ros/.ros/log/eed9c1bc-a5ca-11ec-a955-d80f997b25c9/ur5_mp-14.log

I am using this git repository:

https://github.com/lihuang3/ur5_ROS-G...

I tried following this tutorial , I had an issue of ur_hardware_interface which this git addresses and I was able to solve it. the error new I am facing (i.e. failed to build tree), i have searched it and found solutions on it but not specific to my case and theirs dont apply to my case.

here is my initialize.launch :

and here is my ur5_joint_limited_robot.urdf.xacro: (modified according to the git)

<robot <a="" href="http://xmlns:xacro="http://wiki.ros.org/xacro">xmlns:xacro="http://wiki.ros.org/xacro" name="ur5" ><="" p="">

<xacro:arg name="transmission_hw_interface" default="hardware_interface/PositionJointInterface"/>

<xacro:include filename="$(find ur_description)/urdf/common.gazebo.xacro"/>

<xacro:include filename="$(find ur_description)/urdf/ur5.urdf.xacro"/>

<xacro:macro name="ur5_robot" params="prefix joint_limited shoulder_pan_lower_limit:=${-2pi} shoulder_pan_upper_limit:=${2pi} shoulder_lift_lower_limit:=${-pi} shoulder_lift_upper_limit:=${pi} elbow_joint_lower_limit:=${-pi} elbow_joint_upper_limit:=${pi} wrist_1_lower_limit:=${-pi} wrist_1_upper_limit:=${pi} wrist_2_lower_limit:=${-pi} wrist_2_upper_limit:=${pi} wrist_3_lower_limit:=${-pi} wrist_3_upper_limit:=${pi} transmission_hw_interface:=hardware_interface/PositionJointInterface"/>

Please advise with this issue, also Please answer these questions: 1. why do a failed to build tree error occures? 2. how doee one ensure a urdf is correctly made? 3. Any tips on how to remove the warning: inconsistent namespace redefinitions for xmlns:xacro

I know we can run things with warning so you may not answer the last question.

@Hdriwn
Copy link

Hdriwn commented May 25, 2023

Hey Muhammad ,were you able to find a solution? I am facing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants