Skip to content

2. ROS Environment

Zulhafiz Zulkifli edited this page Aug 26, 2021 · 6 revisions

A good way to check is to ensure that environment variables like ROS_ROOT and ROS_PACKAGE_PATH are set:
$ printenv | grep ROS

Create a ROS Workspace
$ mkdir -p ~/catkin_ws/src
$ cd ~/catkin_ws/src
$ catkin_init_workspace
$ cd ~/catkin_ws
$ catkin_make
$ source devel/setup.bash
To avoid having to source the ~/catkin_ws/devel/setup.bash each time you open a new shell:
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc

Clone this wiki locally