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的rviz仿真环境下启动云台控制

操作步骤

  • 启动云台控制程序
$ ros2 launch interbotix_xsturret_control xsturret_control.launch.py robot_model:=pxxls use_sim:=true

请输入图片描述

  • 通过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]

演示视频

<iframe height=498 width=100% src="//player.bilibili.com/player.html?isOutside=true&aid=113433676611991&bvid=BV1erDgYpEWw&cid=26635732811&p=1&high_quality=1&danmaku=0" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>

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

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


标签: none