ROS version | ubuntu version |
---|---|
Noetic | ubuntu 20.04 |
Melodic | ubuntu 18.04 |
官网下载: ROS Installation Guide 脚本安装:ROS Insatll script
运行以下命令安装一些 ROS 包 和 google-glog 库:
sudo apt-get update && sudo apt-get install -y --no-install-recommends \
ros-${ROS_DISTRO}-tf
ros-${ROS_DISTRO}-nav-msgs
ros-${ROS_DISTRO}-geometry-msgs
sudo apt-get install -y ros-${ROS_DISTRO}-cv-bridge \
ros-${ROS_DISTRO}-image-transport \
ros-${ROS_DISTRO}-stage-ros \
ros-${ROS_DISTRO}-map-server \
ros-${ROS_DISTRO}-laser-geometry \
ros-${ROS_DISTRO}-interactive-markers \
ros-${ROS_DISTRO}-tf \
ros-${ROS_DISTRO}-pcl-* \
ros-${ROS_DISTRO}-libg2o \
ros-${ROS_DISTRO}-rplidar-ros \
ros-${ROS_DISTRO}-rviz \
protobuf-compiler \
libprotobuf-dev \
libsuitesparse-dev \、
libgoogle-glog-dev
cd catkin_ws/src
git clone git@github.com:zezeuser/WildWolf_ICRA.git
cd ..
catkin_make
vim catkin_ws/src/roborts_costmap/config/costmap_parameter_config_for_local_plan.prototxt
# 第 7 行
robot_base_frame: "base_link"
vim /catkin_ws/src/roborts_planning/local_planner/timed_elastic_band/config/timed_elastic_band.prototxt
# 第 2 行
odom_frame: "odom"
roslaunch icra_robomaster_emulator decision_test.launch
rosrun roborts_decision sel_behavior_node
若仿真不能正常显示,则运行以下命令将环境复制到本地 gazebo model 文件夹中
cd ~/catkin_ws/src/icra_robomaster_emulator/wall-2020
cp -r icra_ground_plane/ ~/.gazebo/models/
vim catkin_ws/src/roborts_costmap/config/costmap_parameter_config_for_local_plan.prototxt
# 第 7 行
robot_base_frame: "gimbal"
vim /catkin_ws/src/roborts_planning/local_planner/timed_elastic_band/config/timed_elastic_band.prototxt
# 第 2 行
odom_frame: "gimbal_odom"
注意:运行前请确保雷达与底盘接入
roslaunch roborts_bringup base.launch
roslaunch roborts_bringup roborts.launch
注意运行前请确保接入相机,否则初始化失败
rosrun armor_detection armor_detection_node
注意运行前请确保导航定位正常,否则初始化失败
rosrun roborts_decision sel_behavior_node
更多决策参数修改细节请参考
cat /catkin_ws/src/roborts_decision/config/decision.prototxt
git clone https://github.com/YDLIDAR/YDLidar-SDK.git
cd YDLidar-SDK/build
cmake ..
make
sudo make install