< >
Home » ROS2版OpenManipulator机械臂入门教程 » ROS2与OpenManipulator机械臂入门教程-查看机械臂状态

ROS2与OpenManipulator机械臂入门教程-查看机械臂状态

ROS2与OpenManipulator机械臂入门教程-查看机械臂状态
说明:

  • 本文介绍如何启动机械臂

操作步骤

  • 首先连接上机械臂和OpenCR板,同时用电源线供电给OpenCR板,再用usb数据线连接PC和OpenCR板

  • 查看端口是否存在,同时为端口添加权限

$ ls /dev/ttyACM0
$ sudo chmod a+rw /dev/ttyACM0
  • 建议启动机械臂前请将机械臂手动设置以下姿势,以避免启动后出现无法控制的问题

请输入图片描述

  • 启动机械臂
$ ros2 launch open_manipulator_x_controller open_manipulator_x_controller.launch.py usb_port:=/dev/ttyACM0
[INFO] [launch]: All log files can be found below /home/ubuntu/.ros/log/2022-11-04-11-52-46-783742-TB3-R12V300-VM-3607
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [open_manipulator_x_controller-1]: process started with pid [3609]
[open_manipulator_x_controller-1] [INFO] [1667533967.695710137] [open_manipulator_x_controller]: Succeeded to Initialise OpenManipulator-X Controller
  • 检查设置,查看机械臂的当前状态
$ ros2 topic pub /option std_msgs/msg/String "data: print_open_manipulator_x_setting"

##在启动机械臂的终端上会输出以下信息
  ----------<Manipulator Description>----------
  <Degree of freedom>
  4.000
  <Size of Components>
  5.000

  <Configuration of world>
  [Name]
  -World Name : world
  -Child Name : joint1
  [Static Pose]
  -Position :
  (0.000, 0.000, 0.000)
  -Orientation :
  (1.000, 0.000, 0.000
  0.000, 1.000, 0.000
  0.000, 0.000, 1.000)
  [Dynamic Pose]
  -Linear Velocity :
  (0.000, 0.000, 0.000)
  -Linear acceleration :
  (0.000, 0.000, 0.000)
  -Angular Velocity :
  (0.000, 0.000, 0.000)
  -Angular acceleration :
  (0.000, 0.000, 0.000)

  <Configuration of gripper>
  [Component Type]
    Tool
  [Name]
  -Parent Name : joint4
  [Actuator]
  -Actuator Name : tool_dxl
  -ID :  15
  -Joint Axis :
  (0.000, 0.000, 0.000)
  -Coefficient :  -0.015
  -Limit :
      Maximum : 0.010, Minimum : -0.010
  [Actuator Value]
  -Value :  0.008
  -Velocity :  0.000
  -Acceleration :  0.000
  -Effort :  0.000
  [Constant]
  -Relative Position from parent component :
  (0.130, 0.000, 0.000)
  -Relative Orientation from parent component :
  (1.000, 0.000, 0.000
  0.000, 1.000, 0.000
  0.000, 0.000, 1.000)
  -Mass :  0.000
  -Inertia Tensor :
  (1.000, 0.000, 0.000
  0.000, 1.000, 0.000
  0.000, 0.000, 1.000)
  -Center of Mass :
  (0.000, 0.000, 0.000)
  [Variable]
  -Position :
  (0.138, -0.005, 0.015)
  -Orientation :
  (-0.006, 0.043, 0.999
  0.000, 0.999, -0.043
  -1.000, 0.000, -0.006)
  -Linear Velocity :
  (0.000, 0.000, 0.000)
  -Linear acceleration :
  (0.000, 0.000, 0.000)
  -Angular Velocity :
  (0.000, 0.000, 0.000)
  -Angular acceleration :
  (0.000, 0.000, 0.000)

  <Configuration of joint1>
  [Component Type]
    Active Joint
  [Name]
  -Parent Name : world
  -Child Name 1 : joint2
  [Actuator]
  -Actuator Name : joint_dxl
  -ID :  11
  -Joint Axis :
  (0.000, 0.000, 1.000)
  -Coefficient :  1.000
  -Limit :
      Maximum : 3.142, Minimum : -3.142
  [Actuator Value]
  -Value :  -0.043
  -Velocity :  0.000
  -Acceleration :  0.000
  -Effort :  0.000
  [Constant]
  -Relative Position from parent component :
  (0.012, 0.000, 0.017)
  -Relative Orientation from parent component :
  (1.000, 0.000, 0.000
  0.000, 1.000, 0.000
  0.000, 0.000, 1.000)
  -Mass :  0.000
  -Inertia Tensor :
  (1.000, 0.000, 0.000
  0.000, 1.000, 0.000
  0.000, 0.000, 1.000)
  -Center of Mass :
  (0.000, 0.000, 0.000)
  [Variable]
  -Position :
  (0.012, 0.000, 0.017)
  -Orientation :
  (0.999, 0.043, 0.000
  -0.043, 0.999, 0.000
  0.000, 0.000, 1.000)
  -Linear Velocity :
  (0.000, 0.000, 0.000)
  -Linear acceleration :
  (0.000, 0.000, 0.000)
  -Angular Velocity :
  (0.000, 0.000, 0.000)
  -Angular acceleration :
  (0.000, 0.000, 0.000)

  <Configuration of joint2>
  [Component Type]
    Active Joint
  [Name]
  -Parent Name : joint1
  -Child Name 1 : joint3
  [Actuator]
  -Actuator Name : joint_dxl
  -ID :  12
  -Joint Axis :
  (0.000, 1.000, 0.000)
  -Coefficient :  1.000
  -Limit :
      Maximum : 1.571, Minimum : -2.050
  [Actuator Value]
  -Value :  -0.052
  -Velocity :  0.000
  -Acceleration :  0.000
  -Effort :  0.000
  [Constant]
  -Relative Position from parent component :
  (0.000, 0.000, 0.058)
  -Relative Orientation from parent component :
  (1.000, 0.000, 0.000
  0.000, 1.000, 0.000
  0.000, 0.000, 1.000)
  -Mass :  0.000
  -Inertia Tensor :
  (1.000, 0.000, 0.000
  0.000, 1.000, 0.000
  0.000, 0.000, 1.000)
  -Center of Mass :
  (0.000, 0.000, 0.000)
  [Variable]
  -Position :
  (0.012, 0.000, 0.075)
  -Orientation :
  (0.998, 0.043, -0.052
  -0.043, 0.999, 0.002
  0.052, 0.000, 0.999)
  -Linear Velocity :
  (0.000, 0.000, 0.000)
  -Linear acceleration :
  (0.000, 0.000, 0.000)
  -Angular Velocity :
  (0.000, 0.000, 0.000)
  -Angular acceleration :
  (0.000, 0.000, 0.000)

  <Configuration of joint3>
  [Component Type]
    Active Joint
  [Name]
  -Parent Name : joint2
  -Child Name 1 : joint4
  [Actuator]
  -Actuator Name : joint_dxl
  -ID :  13
  -Joint Axis :
  (0.000, 1.000, 0.000)
  -Coefficient :  1.000
  -Limit :
      Maximum : 1.530, Minimum : -1.571
  [Actuator Value]
  -Value :  0.546
  -Velocity :  0.000
  -Acceleration :  0.000
  -Effort :  0.000
  [Constant]
  -Relative Position from parent component :
  (0.024, 0.000, 0.128)
  -Relative Orientation from parent component :
  (1.000, 0.000, 0.000
  0.000, 1.000, 0.000
  0.000, 0.000, 1.000)
  -Mass :  0.000
  -Inertia Tensor :
  (1.000, 0.000, 0.000
  0.000, 1.000, 0.000
  0.000, 0.000, 1.000)
  -Center of Mass :
  (0.000, 0.000, 0.000)
  [Variable]
  -Position :
  (0.029, -0.001, 0.204)
  -Orientation :
  (0.880, 0.043, 0.474
  -0.038, 0.999, -0.020
  -0.474, 0.000, 0.880)
  -Linear Velocity :
  (0.000, 0.000, 0.000)
  -Linear acceleration :
  (0.000, 0.000, 0.000)
  -Angular Velocity :
  (0.000, 0.000, 0.000)
  -Angular acceleration :
  (0.000, 0.000, 0.000)

  <Configuration of joint4>
  [Component Type]
    Active Joint
  [Name]
  -Parent Name : joint3
  -Child Name 1 : gripper
  [Actuator]
  -Actuator Name : joint_dxl
  -ID :  14
  -Joint Axis :
  (0.000, 1.000, 0.000)
  -Coefficient :  1.000
  -Limit :
      Maximum : 2.000, Minimum : -1.800
  [Actuator Value]
  -Value :  1.083
  -Velocity :  0.000
  -Acceleration :  0.000
  -Effort :  -2.690
  [Constant]
  -Relative Position from parent component :
  (0.124, 0.000, 0.000)
  -Relative Orientation from parent component :
  (1.000, 0.000, 0.000
  0.000, 1.000, 0.000
  0.000, 0.000, 1.000)
  -Mass :  0.000
  -Inertia Tensor :
  (1.000, 0.000, 0.000
  0.000, 1.000, 0.000
  0.000, 0.000, 1.000)
  -Center of Mass :
  (0.000, 0.000, 0.000)
  [Variable]
  -Position :
  (0.138, -0.005, 0.145)
  -Orientation :
  (-0.006, 0.043, 0.999
  0.000, 0.999, -0.043
  -1.000, 0.000, -0.006)
  -Linear Velocity :
  (0.000, 0.000, 0.000)
  -Linear acceleration :
  (0.000, 0.000, 0.000)
  -Angular Velocity :
  (0.000, 0.000, 0.000)
  -Angular acceleration :
  (0.000, 0.000, 0.000)
  ---------------------------------------------

纠错,疑问,交流: 请进入讨论区点击加入Q群

获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号


标签: none