207 字
1 分钟
HeRo ROS开发环境配置
安装 ROS
[ROS1 on Ubuntu 22.04] 在Ubuntu 22.04直接使用ROS1的新方案
sudo add-apt-repository ppa:ros-for-jammy/noeticsudo apt updatesudo apt install ros-noetic-desktop-full配置 HeRo 开发环境
cd ~/catkin_ws/srcgit clone --depth 1 --branch noetic-devel https://github.com/verlab/hero_common.git # select your ROS distrocd ..rosdep install --from-paths src/hero_common --ignore-src -r -y报错:
ERROR: the following packages/stacks could not have their rosdep keys resolvedto 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 successfullycd ~/catkin_ws/srcgit clone https://github.com/ros-drivers/rosserial.git -b noetic-develgit clone https://github.com/ros-perception/image_common.git -b noetic-develgit clone https://github.com/ros-drivers/usb_cam.git -b developgit clone https://github.com/ros-teleop/teleop_twist_keyboard.gitgit clone https://github.com/ros/urdf_parser_py.git -b melodic-develcd ~/catkin_wscatkin_make # or catkin buildCommand 'catkin_make' not found, but can be installed with:sudo apt install catkinsource /opt/ros/noetic/setup.sh-- Checking for module 'libv4l2'-- No package 'libv4l2' foundsudo apt install libv4l2-dev# sudo apt install libv4l-devsource devel/setup.bash # Set the appropriate bash extensionroslaunch hero_bringup hero_bringup.launch测试 HeRo
cd ~/catkin_wssource devel/setup.bash # Set the appropriate bash extensionroslaunch hero_bringup hero_bringup.launchroslaunch hero_bringup hero_teleop.launch id:=0 HeRo ROS开发环境配置
https://fuwari.vercel.app/posts/编程/ros/hero-ros开发环境配置/