Closed SOHAILMBS closed 10 months ago
@SOHAILMBS if you are having issues with clearpath_config please do provide the package version info for clearpath_config. I am assuming that you are using my latest changes based on the error that you are reporting.
See https://github.com/clearpathrobotics/clearpath_config/pull/45#issuecomment-1875576195 for the new formatting (documentation incoming to the docs website soon). You can still provide an absolute path in the new path
parameter but if your urdf is being installed as part of a package then you can also now use the package name and relative link.
Unfortunately there is was an issue with how null is handled for an extras urdf which will be has been handled with https://github.com/clearpathrobotics/clearpath_config/pull/47. This update has now been released so you should be able to update your packages.
Feel free to let me know if you continue to have any issues beyond those mentioned above. There were specific circumstances that had us make a breaking change in a minor update, I'm sorry that you had to deal with that. We don't do it lightly.
Thank you, I have tested with the new changes and it works well now and reports the error as well.
For those who come later, the format that worked for me was the following:
extras:
urdf:
path: "/home/administrator/ros2_ws/src/mybotshop/hsky_description/urdf/augments.urdf.xacro"
Please provide the following information:
OS: Ubuntu 22.04
ROS 2 Distro: Humble
Built from source or installed: Source
Package version:
Package: ros-humble-clearpath-common Status: install ok installed Priority: optional Section: misc Installed-Size: 41 Maintainer: Luis Camero lcamero@clearpathrobotics.com Architecture: amd64 Version: 0.2.1-1jammy.20231221.220210 Depends: ros-humble-clearpath-control, ros-humble-clearpath-description, ros-humble-clearpath-generator-common, ros-humble-clearpath-platform, ros-humble-ros-workspace Description: Clearpath Common Metapackage
Real hardware or simulation: Real
Expected behaviour When the robot.yaml is modified it should pick the urdf
Actual behaviour It does not pick the urdf
To Reproduce
sudo nano /etc/clearpath/robot.yaml
4 .
sudo systemctl restart clearpath-robot
Jan 05 14:18:55 Husky-A200-1005 administrator[1195]: clearpath-platform: Using workspace setup file /etc/clearpath/setup.bash Jan 05 14:18:55 Husky-A200-1005 clearpath-platform-start[1530]: ls: cannot access '/etc/ros/humble/clearpath-platform.d/*.xacro': No such file or directory Jan 05 14:18:56 Husky-A200-1005 clearpath-platform-start[1658]: [INFO] [launch]: All log files can be found below /tmp/2024-01-05-14-18-56-428094-Husky-A200-1005-1658 Jan 05 14:18:56 Husky-A200-1005 clearpath-platform-start[1658]: [INFO] [launch]: Default logging verbosity is set to INFO Jan 05 14:18:57 Husky-A200-1005 clearpath-platform-start[1658]: [ERROR] [launch]: Caught exception in launch (see debug for traceback): executed command failed. Command: /opt/ros/humble/bin/xacro /etc/clearpath/robot.urdf.xacro is_sim:=false gazebo_controllers:> Jan 05 14:18:57 Husky-A200-1005 clearpath-platform-start[1658]: Captured stderr output: error: No such file or directory: /.urdf.xacro [Errno 2] No such file or directory: '/.urdf.xacro' Jan 05 14:18:57 Husky-A200-1005 clearpath-platform-start[1658]: when processing file: /etc/clearpath/robot.urdf.xacro Jan 05 14:18:57 Husky-A200-1005 systemd[1]: clearpath-platform.service: Main process exited, code=exited, status=1/FAILURE Jan 05 14:18:57 Husky-A200-1005 systemd[1]: clearpath-platform.service: Failed with result 'exit-code'. Jan 05 14:18:57 Husky-A200-1005 systemd[1]: clearpath-platform.service: Consumed 1.956s CPU time.
When I run
ros2 run clearpath_robot install
, everything is successfulEven with null option the error remains,
Manually updating the
/etc/clearpath/robot.urdf.xacro
fixes the error but i thinks gets over written when the generators run