No such file or directory: /home/ahmad/catkin_ws/src/mastering_ros_robot_description_pkg/urdf/seven_dof_arm.xacro

asked 2020-11-10 08:37:05 -0500

ahmadF gravatar image

I am using ROS melodic and trying to simulate 7 dof robotic arm in the book "Mastering ROS for Robotics" chapter 4. when I run the code : " roslaunch seven_dof_arm_gazebo seven_dof_arm_world.launch", I get this error :

No such file or directory: /home/ahmad/catkin_ws/src/mastering_ros_robot_description_pkg/urdf/seven_dof_arm.xacro RLException: Invalid tag: Cannot load command parameter [robot_description]: command [['/opt/ros/melodic/lib/xacro/xacro', '--inorder', '/home/ahmad/catkin_ws/src/mastering_ros_robot_description_pkg/urdf/seven_dof_arm.xacro']] returned with code [2].

The book recommends to use ROS kinetic, but due to problems with gazebo 7 I switched to ROS melodic and gazebo 9. But I do not know how to solve this problem. Thanks alot for the responses

edit retag flag offensive close merge delete

Comments

The first thing to check is if you actually have /home/ahmad/catkin_ws/src/mastering_ros_robot_description_pkg/urdf/seven_dof_arm.xacro (to make sure it's not a typo and misnamed). Are there any typos or other errors in the name?

miura gravatar image miura  ( 2020-11-11 06:03:13 -0500 )edit