ROS 1-style CLI aliases for ROS 2, with working autocompletion.
Project description
ros-is-ros2
ROS 1-style CLI aliases for ROS 2, with working autocompletion.
For detailed documentation on usage, development, and troubleshooting, please see the full documentation.
Installation
Requirements
- ROS2 (Humble; Iron, Jazzy, and Rolling not tested yet)
- Python 3.8+
- Bash shell (Zsh shell is still not supported, welcome to contribute!)
Note: For bash users, bash-completion will be automatically installed during setup for an optimal tab completion experience.
From GitHub Releases (Recommended)
Download the latest wheel file from GitHub Releases:
# Download ros_is_ros2-X.X.X-py3-none-any.whl from releases, then:
pip install ros_is_ros2-0.4.0-py3-none-any.whl
ros-is-ros2 install # Automatically installs bash-completion if needed
source ~/.bashrc # or ~/.zshrc
From PyPI (when published)
pip install ros-is-ros2
# If the 'ros-is-ros2' command is not found after installation, use:
python3 -m ros_is_ros2 install
# Otherwise:
ros-is-ros2 install # Automatically installs bash-completion if needed
source ~/.bashrc # or ~/.zshrc
From Source
git clone https://github.com/leochien1110/ros-is-ros2.git
cd ros-is-ros2
pip install .
ros-is-ros2 install
source ~/.bashrc # or ~/.zshrc
Quick Use
Once installed, your favorite ROS 1 commands will be available with full tab-completion.
Command Aliases
| ROS 1 Style | ROS 2 Equivalent |
|---|---|
rostopic |
ros2 topic |
rosnode |
ros2 node |
rosservice |
ros2 service |
rosparam |
ros2 param |
rosbag |
ros2 bag |
rosrun |
ros2 run |
roslaunch |
ros2 launch |
rospack |
ros2 pkg |
rossrv |
ros2 interface |
rosmsg |
ros2 interface |
ROS Domain ID Autocompletion
Quickly check or set your ROS Domain ID with tab completion:
# Check current ROS_DOMAIN_ID
rosdomainid
# Output: 42 (or "unset" if not configured)
# Set ROS_DOMAIN_ID with tab completion
rosdomainid <TAB>
# Shows: 0 1 2 3 ... 101
# Set to a specific domain
rosdomainid 42
# Output: ROS_DOMAIN_ID set to 42
Launch Argument Autocompletion
Enjoy ROS 1-style tab completion for launch arguments:
Native ROS 2 launch argument completion
ROS 1-style launch argument completion with ros-is-ros2, ~10s faster
# Type 'roslaunch <pkg> <launch_file> ' and press <TAB>
roslaunch realsense2_camera rs_launch.py <TAB>
# Shows: camera_name:= camera_namespace:= serial_no:= ...
# Partial argument completion also works
roslaunch realsense2_camera rs_launch.py cam<TAB>
# Shows: camera_name:= camera_namespace:=
Uninstallation
ros-is-ros2 uninstall # Removes shell integration and cleans cache
pip uninstall ros-is-ros2
source ~/.bashrc # or ~/.zshrc
License
This project is licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later). See LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ros_is_ros2-0.4.1.tar.gz.
File metadata
- Download URL: ros_is_ros2-0.4.1.tar.gz
- Upload date:
- Size: 34.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec422b6505f271c2ae9c6524d04311082a7ad39ecb65f5e3a9972afc112e0746
|
|
| MD5 |
4648acd7a74abbdfa5b14e5541e60f22
|
|
| BLAKE2b-256 |
b17e7917d209bc27f34e0deff8a753811040b4f8f0a0714145ca66addf0748bc
|
File details
Details for the file ros_is_ros2-0.4.1-py3-none-any.whl.
File metadata
- Download URL: ros_is_ros2-0.4.1-py3-none-any.whl
- Upload date:
- Size: 36.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbf3ce15a24459e045d34b1b4e14c2a60cec8cc0770d45caefbea2d43d1486c6
|
|
| MD5 |
e7e440cc37aa663e28c2c9835e6705df
|
|
| BLAKE2b-256 |
0f030d1c06fdbd32e8e1789cdc8bd81bd62610a20e2ed8c82ad02b9a0917caa0
|