A ROS package based on C++ and Qt for ros-tutorial's turtle simulation teleoperation.
基于C++和Qt的ROS包,用于ROS教程-小乌龟仿真的界面遥控。
- Ubuntu 20.04
- ROS Noetic
- Qt5: qt5-default, qt5-doc, qtbase5-dev, qtbase5-dev-tools, qtchooser
-
Install the prerequisites 安装所需软件库
-
Build a workspace 创建工作空间
mkdir -p catkin_ws/src
-
Clone this repository in
/catkin_ws/src
克隆仓库cd catkin_ws/src git clone https://github.com/McQueenZero/Hello-ROS-Qt.git
-
Build the files 编译
catkin_make
-
Launch the nodes 启动节点
cd catkin_ws source devel/setup.bash roslaunch teleop turtlesim_teleop.launch
-
Change the turtle path pen color 更改乌龟轨迹笔刷颜色
rosservice call /turtle1/set_pen "{r: 0, g: 0, b: 0, width: 5, 'off': 0}"