Skip to content

prateekbhaisora/ROS-2-Programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ROS-2-Programming

This repo contains Python3 and CPP code written for ROS-2 Humble Hawksbill LTS on Ubuntu 22.04.4 LTS running over VMware Fusion on arm64 architecture.

So, to clear the original build and create a new fresh build, run the following commands:

mkdir ros2_ws
cd ros2_ws/
git clone https://github.com/prateekbhaisora/ROS-2-Programming.git
cd ROS-2-Programming/
mv * ../
cd ..
sudo rm -rf ROS-2-Programming/
cd build/
sudo rm -rf my_cpp_pkg/ my_py_pkg/ my_robot_bringup/ my_robot_interfaces/
colcon build --symlink-install --cmake-clean-first

Make sure you have all the dependencies such as pip3, python3, colcon, etc., required for ROS2, pre-installed before using this code.

Some common ROS2 Errors:

  1. Missing/Wrong Environment Variables:
WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/prateek/ros2_ws/src/install/my_py_pkg' in the environment variable AMENT_PREFIX_PATH doesn't exist
...
  • To fix such errors/warnings, simply unset the corresponding environment variables.

  • e.g.

unset AMENT_PREFIX_PATH
unset CMAKE_PREFIX_PATH
colcon build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published