turtlebot3-burger_150.png
turtlebot3-waffle-pi_150.png
turtlebot3-arm_150.png
walking-y2_150.png
turbot3-multi_150.png
turbot3-dl-ros1_150.png
turbot3-ai.png
turbot3-dl-ros2_150.png
turbot3-slam_150.png
turbot3-arm_150.png
turtlebot4-lite_150.png
turtlebot4-pro_150.png
turbot4-dl_150.png
turbot4-ai_150.png
aidriving-racebot_150.png
aidriving-autodrive_150.png
turtlebot-arm_150.png
openmanipulator-x_150.png
Home » ROS2与Interbotix云台快速入门教程 » ROS2与Interbotix云台快速入门教程-启动云台控制

ROS2与Interbotix云台快速入门教程-启动云台控制

纠错,疑问,交流: 请进入讨论区请点击进入页面,扫码加入微信群或Q群进行交流

获取最新文章: 扫一扫加入“创客智造”公众号

文章说明

  • 本教程主要介绍如何在ros2环境下启动Interbotix云台控制

操作步骤

  • 启动云台控制程序
$ ros2 launch interbotix_xsturret_control xsturret_control.launch.py robot_model:=pxxls
  • 查看话题
$ ros2 topic list
/clicked_point
/goal_pose
/initialpose
/parameter_events
/pxxls/commands/joint_group
/pxxls/commands/joint_single
/pxxls/commands/joint_trajectory
/pxxls/initialpose
/pxxls/joint_states
/pxxls/robot_description
/rosout
/tf
/tf_static

请输入图片描述

  • 通过topic pub方式进行控制云台
# 回到初始位姿
$ ros2 topic pub --once /pxxls/commands/joint_group interbotix_xs_msgs/msg/JointGroupCommand "{name: 'all', cmd: [0, 0]}"

# pan舵机逆时针旋转90°,tilt舵机处于原位
$ ros2 topic pub --once /pxxls/commands/joint_group interbotix_xs_msgs/msg/JointGroupCommand "{name: 'all', cmd: [1.57, 0]}"

# tilt舵机顺时针旋转90°,pan舵机处于原位
$ ros2 topic pub --once /pxxls/commands/joint_group interbotix_xs_msgs/msg/JointGroupCommand "{name: 'all', cmd: [0, 1.57]}"
  • pan舵机的限位范围为[-3.14, 3.14]tilt舵机的限位范围为[-1.57, 1.57]

纠错,疑问,交流: 请进入讨论区请点击进入页面,扫码加入微信群或Q群进行交流

获取最新文章: 扫一扫加入“创客智造”公众号


标签: none