NITKK-ROS-Team / setup_ros_env

Display the ROS environment on the terminal like pyenv.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup ROS env

Display the ROS environment on the terminal like pyenv.

example

Setup

$ cd ~
$ git clone https://github.com/Ar-Ray-code/setup_ros_env.git
$ bash setup_ros_env/setup.bash
>> Enter ros1-distro (e.g. noetic) : noetic
>> noetic
>> Enter ros1_workspace (abs path) : ~/ros1_ws
>> ~/ros1_ws
>> Enter ros2-distro (e.g. foxy) : foxy
>> foxy
>> Enter ros2_workspace(abs path) : ~/ros2_ws
>> ~/ros2_ws

Automatic Setup

wget https://raw.githubusercontent.com/Ar-Ray-code/setup_ros_env/master/auto_setup.bash && bash auto_setup.bash && rm auto_setup.bash
>> Enter ros1-distro (e.g. noetic) : noetic
>> noetic
>> Enter ros1_workspace (abs path) : ~/ros1_ws
>> ~/ros1_ws
>> Enter ros2-distro (e.g. foxy) : foxy
>> foxy
>> Enter ros2_workspace(abs path) : ~/ros2_ws
>> ~/ros2_ws

setting

In "Enter ros2(or 1)_workspace (abs path):", enter the ROS workspace that contains the absolute path. If you Enter empty, the setting will be skipped.

ROS Environment setup

ROS1

example@example:~$ ros1_init
(noetic):~$

ROS2

example@example:~$ ros2_init
(foxy):~$

About

Display the ROS environment on the terminal like pyenv.


Languages

Language:Shell 100.0%