207 字
1 分钟
HeRo ROS开发环境配置
2025-09-01

安装 ROS#

[ROS1 on Ubuntu 22.04] 在Ubuntu 22.04直接使用ROS1的新方案

sudo add-apt-repository ppa:ros-for-jammy/noetic
sudo apt update
sudo apt install ros-noetic-desktop-full

配置 HeRo 开发环境#

Terminal window
cd ~/catkin_ws/src
git clone --depth 1 --branch noetic-devel https://github.com/verlab/hero_common.git # select your ROS distro
Terminal window
cd ..
rosdep install --from-paths src/hero_common --ignore-src -r -y

报错:

ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
hero_common: Cannot locate rosdep definition for [usb_cam]
hero_bringup: Cannot locate rosdep definition for [rosserial_python]
hero_ar_tracker: Cannot locate rosdep definition for [usb_cam]
hero_gazebo: Cannot locate rosdep definition for [python-pyqt5]
hero_firmware: Cannot locate rosdep definition for [teleop_twist_keyboard]
Continuing to install resolvable dependencies...
#All required rosdeps installed successfully
Terminal window
cd ~/catkin_ws/src
git clone https://github.com/ros-drivers/rosserial.git -b noetic-devel
git clone https://github.com/ros-perception/image_common.git -b noetic-devel
git clone https://github.com/ros-drivers/usb_cam.git -b develop
git clone https://github.com/ros-teleop/teleop_twist_keyboard.git
git clone https://github.com/ros/urdf_parser_py.git -b melodic-devel
Terminal window
cd ~/catkin_ws
catkin_make # or catkin build
Command 'catkin_make' not found, but can be installed with:
sudo apt install catkin
Terminal window
source /opt/ros/noetic/setup.sh
-- Checking for module 'libv4l2'
-- No package 'libv4l2' found
Terminal window
sudo apt install libv4l2-dev
# sudo apt install libv4l-dev
Terminal window
source devel/setup.bash # Set the appropriate bash extension
roslaunch hero_bringup hero_bringup.launch

测试 HeRo#

Terminal window
cd ~/catkin_ws
source devel/setup.bash # Set the appropriate bash extension
roslaunch hero_bringup hero_bringup.launch
roslaunch hero_bringup hero_teleop.launch id:=0
HeRo ROS开发环境配置
https://fuwari.vercel.app/posts/编程/ros/hero-ros开发环境配置/
作者
Asuwee
发布于
2025-09-01
许可协议
CC BY-NC-SA 4.0