There is a new error on the missing Xacro.load yaml file missing from the ur_description folder which I have no idea how to fix. I fixed the command needed for it to be executed but now have this issue
I used this past post for information but after purging the file base still get this error but I also get error when doing the colcon build:
[2.686s] WARNING:colcon.colcon_core.package_selection:Some selected packages are already built in one or more underlay workspaces:
‘ur_description’ is in: /home/user/ros2_ws/install/ur_description, /home/simulations/ros2_sims_ws/install/ur_description
If a package in a merged underlay workspace is overridden and it installs headers, then all packages in the overlay must sort their include directories by workspace order. Failure to do so may result in build failures or undefined behavior at run time.
If the overridden package is used by another package in any underlay, then the overriding package in the overlaymust be API and ABI compatible or undefined behavior at run time may occur.
If you understand the risks and want to override a package anyways, add the following to the command line:
–allow-overriding ur_description
This may be promoted to an error in a future release of colcon-override-check.
Starting >>> robotiq_85_msgs
Starting >>> robotiq_85_description
Starting >>> robotnik_sensors
Starting >>> ur_description
Finished <<< robotiq_85_description [1.06s]
Finished <<< robotnik_sensors [1.06s]
Starting >>> robotnik_sensors_gazebo
Finished <<< ur_description [1.17s]
Starting >>> my_moveit2_config
Finished <<< robotnik_sensors_gazebo [0.74s]
Finished <<< my_moveit2_config [0.63s]
Finished <<< robotiq_85_msgs [2.54s]
Starting >>> robotiq_85_driver
/usr/lib/python3/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated ‘script-dir’ will not be supported in future versions. Please use the underscore name ‘script_dir’ instead
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated ‘install-scripts’ will not be supported in future versions. Please use the underscore name ‘install_scripts’ instead
warnings.warn(
— stderr: robotiq_85_driver
/usr/lib/python3/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated ‘script-dir’ will not be supported in future versions. Please use the underscore name ‘script_dir’ instead
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
You can fix this error by providing the following command:
You just have to copy-paste this on the same terminal where you get this error.
You have to do this after every compilation from scratch, that is, when you remove build, install and log folders before doing colcon build.
There a lot of dangerous mistakes in your steps, so let me clarify them:
DO NOT DO THIS! This command will remove ALL the user created projects inside ros2_ws directory and you WILL LOSE ALL YOUR DATA.
This step is again wrong. Recreating ros2_ws/src directory will only create an empty set of folders and subfolders.
These steps are again unnecessary. You do not require those package files.
To re-build from scratch, you must remove ONLY build, install and log folders and NOT the src folder or the entire ros2_ws directory. THIS IS A HUGE MISTAKE.
From your post, I can understand that you do not have a good understanding of how ROS2 works. Please get to know that before you do uninformed actions like deleting the ros2_ws directory.
Your post is NOT A SOLUTION.
For other students who refer to this post in the future: