[Bug] xacro.load yaml error found in Unit 3

This is an error report.


Screenshot of the error


Error details

Hello I found an error when executing the test trajectory cpp file when using the planning trajectory in the moveit2 scripts package built through the tutorial. I am not sure how to fix this prevalent error that I encountered in Unit 2; Do I have to remove the whole directory again and redo all the progress from scratch? I can execute all the commands of the move_group py launch command and the opening of RVIZ without an issue it is the execution of planning the trajectory seems to be the issue.

Hi @Agarcia5612 ,

Please refer to this post: [Bug] Error on the missing file on the xacro.load yaml - #4 by girishkumar.kannan

Please do not post duplicates of the same issue. The issue is the same immaterial of which unit/chapter you face it. The solution is also the same.

That is the correct solution for this issue. Please do not attempt to do anything else on your own!

If you get errors in during compilation execute the following commands in exact order:

  1. First re-build your workspace from scratch:
cd ~/ros2_ws
rm -rf ./build ./install ./log
colcon build
source install/setup.bash
  1. Then copy the initial_positions.yaml file:
cp /home/simulations/ros2_sims_ws/install/ur_description/share/ur_description/config/initial_positions.yaml /home/simulations/ros2_sims_ws/install/ur_description/share/ur_description/urdf/initial_positions.yaml
  1. Then you can launch/execute any of your programs.

I urge you take a quick refresher on how ROS2 compilation works. Please do not perform uninformed commands, like you have stated in your other post (mentioned above).

Regards,
Girish

Thank you again for the clarification on the procedures on how rework with the workspaces. It is very useful!

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.