Skip to main content

ROS 1-style CLI aliases for ROS 2, with working autocompletion.

Reason this release was yanked:

Broken entry point

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
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 Autocompletion Native ROS 2 launch argument completion

ROS-is-ROS2 Autocompletion 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ros_is_ros2-0.4.0.tar.gz (34.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ros_is_ros2-0.4.0-py3-none-any.whl (35.8 kB view details)

Uploaded Python 3

File details

Details for the file ros_is_ros2-0.4.0.tar.gz.

File metadata

  • Download URL: ros_is_ros2-0.4.0.tar.gz
  • Upload date:
  • Size: 34.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for ros_is_ros2-0.4.0.tar.gz
Algorithm Hash digest
SHA256 313e4a1f0e5c18b2e6e0e597164a2252b1fa99cd6a72a1e2a1659943639202d8
MD5 ef48ce8bd36a7f6c67103dae1a9a7c77
BLAKE2b-256 36b82f40b19b143991f04e2da97e1f3e0c2037ad6d061200db2b994e61224428

See more details on using hashes here.

File details

Details for the file ros_is_ros2-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: ros_is_ros2-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 35.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for ros_is_ros2-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d263778954fc821f3d19391d4a2d6d20ae125dfb5b0d642a45c9ee5c32930c5c
MD5 5d088e5b79eceaf412c00c23bbd441c8
BLAKE2b-256 f354b3daa82b2fcd134467bca33fe22c08684ca93989e3b67f3e402f1c09226b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page