当前位置:   article > 正文

Open Source 6 dof robot arm -- Universal Robot 手把手运行 ROS2 Humble_not found, searching: ['/opt/ros/humble']

not found, searching: ['/opt/ros/humble']

运行要求:

1、Ubuntu 22.02
2、ROS Humble
(3、Gazebo Garden)

运行

  1. 下载Universal_Robots_ROS2_Description开源包
    地址:https://github.com/UniversalRobots/Universal_Robots_ROS2_Description
git clone git@github.com:UniversalRobots/Universal_Robots_ROS2_Description.git
  • 1
  1. Build repository
cd Universal_Robots_ROS2_Description/
colcon build
source install/setup.bash
  • 1
  • 2
  • 3
  1. 运行 Launch
ros2 launch ur_description view_ur.launch.py ur_type:=ur5e
  • 1

可能报错:

[INFO] [launch]: All log files can be found below
/home/zhzhubuntu/.ros/log/2023-03-08-10-50-35-054283-zhzhubuntu-Standard-PC-Q35-ICH9-2009-52385
[INFO] [launch]: Default logging verbosity is set to INFO [ERROR]
[launch]: Caught exception in launch (see debug for traceback):
package ‘joint_state_publisher_gui’ not found, searching:
[‘/home/xxxxx/Universal_Robots_ROS2_Description/install/ur_description’,
‘/opt/ros/humble’]”

有个包没装。

装包:
sudo update
sudo apt install ros-< your ros version>-joint-state-publisher-gui
这里直接装包了

sudo apt install ros-humble-joint-state-publisher-gui
  • 1

再次运行

source install/setup.bash
ros2 launch ur_description view_ur.launch.py ur_type:=ur5e
  • 1
  • 2

在这里插入图片描述

可以控制6个自由度的机械臂

其他关于Universal Robot消息可以“百度”。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/491125
推荐阅读
相关标签
  

闽ICP备14008679号