Comment corriger ROS2 Could not find the resource 'joint_state_publisher_gui' sur Ubuntu
Problème
Lors de l’exécution ou du lancement de votre paquet ROS, vous voyez le message d’erreur suivant :
ament-index-error.txt
File "/opt/ros/jazzy/lib/python3.12/site-packages/ament_index_python/packages.py", line 60, in get_package_prefix
content, package_prefix = get_resource('packages', package_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/ros/jazzy/lib/python3.12/site-packages/ament_index_python/resources.py", line 93, in get_resource
raise LookupError(
LookupError: Could not find the resource 'joint_state_publisher_gui' of type 'packages'Solution
vous devez installer le paquet joint-state-publisher-gui en utilisant apt :
install-joint-state-publisher.sh
sudo apt -y install ros-jazzy-joint-state-publisher-guiCheck out similar posts by category:
ROS
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow