https://github.com/ar-ray-code/setup_ros_env
Display the ROS environment on the terminal like pyenv.
https://github.com/ar-ray-code/setup_ros_env
ros
Last synced: 10 months ago
JSON representation
Display the ROS environment on the terminal like pyenv.
- Host: GitHub
- URL: https://github.com/ar-ray-code/setup_ros_env
- Owner: Ar-Ray-code
- Created: 2021-04-04T08:38:30.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-05-14T11:48:35.000Z (over 3 years ago)
- Last Synced: 2025-01-30T21:44:59.453Z (about 1 year ago)
- Topics: ros
- Language: Shell
- Homepage:
- Size: 134 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Setup ROS env
Display the ROS environment on the terminal like pyenv.

## Setup
```bash
$ 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
```bash
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
```

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
```bash
example@example:~$ ros1_init
(noetic):~$
```
### ROS2
```bash
example@example:~$ ros2_init
(foxy):~$
```
## About writer
- Ar-Ray : Japanese student.
- Blog(Japanese) : https://ar-ray.hatenablog.com/
- Twitter : https://twitter.com/Ray255Ar