ROS1 robot path tracking

一、配置并编译

1. 安装 ros

2. 安装 protoc

git clone https://gitcode.net/mirrors/protocolbuffers/protobuf.git
cd protobuf
git submodule update --init --recursive
./autogen.sh
./configure
make
make check
sudo make install
sudo ldconfig

protoc --version # verify

3. 安装 protobuf

sudo apt install libprotobuf-dev libignition-msgs* ros-foxy-gazebo-dev

4. 编译turtlebot3(noetic)

mkdir -p ~/catkin_ws/src && cd ~/catkin_ws/src
git clone -b noetic-devel https://gitcode.net/mirrors/ROBOTIS-GIT/turtlebot3_msgs.git
git clone -b noetic-devel https://gitcode.net/mirrors/ROBOTIS-GIT/turtlebot3.git
cd ~/catkin_ws
rosdep install --from-paths src -i -y
catkin_make
source devel/setup.bash 
export TURTLEBOT3_MODEL=waffle
cd ~/catkin_ws/src
git clone -b noetic-devel https://ghproxy.com/https://github.com/ROBOTIS-GIT/turtlebot3_simulations.git
cd .. && catkin_make
cd && export TURTLEBOT3_MODEL=waffle && source ~/catkin_ws/devel/setup.bash

5. 编译github上的代码

将github上的包解压到~/catkin_ws/src中,再cd ~/catkin_ws && catkin_make

二、运行并调试

1. 运行代码

在两个终端中分别运行
roslaunch tb3_control control.launch
roslaunch turtlebot3_fake turtlebot3_fake.launch
作者视频:video.

2. 调整参数

最后修改为 Kp = 0.3, Ki = 0.01, Kd = 0.1

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值