Skip to content

Brand-compliant 'ROS 2' and 'ROS 1' command aliases with autocompletion support for 'ROS 2'

License

Notifications You must be signed in to change notification settings

christophebedard/ros_2cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ros_2cli

Brand-compliant ROS 2 and ROS 1 command aliases. See shouldiputaspacebetweenrosand2.com.

Command... ...calls Example... ...calls
ROS 2 ... ros2 ... ROS 2 topic list ros2 topic list
ROS 1 ... ros... ROS 1 topic list rostopic list

The ROS 2 command alias supports autocompletion:

$ ROS <tab>
1 2 -h --help
$ ROS 2 <tab>
action                          interface                       run
bag                             launch                          security
component                       lifecycle                       service
daemon                          multicast                       topic
doctor                          node                            --use-python-default-buffering
extension_points                param                           wtf
extensions                      pkg
$ ROS 2 topic <tab>
bw                       hz                       pub
delay                    --include-hidden-topics  type
echo                     info                     
find                     list
$ ROS 2 topic list
/email
/parameter_events
/rosout

How to use

  1. Clone package into your workspace
    $ cd ~/ws/src
    $ git clone https://github.com/christophebedard/ros_2cli.git
  2. Build package
    $ cd ~/ws
    $ colcon build --packages-up-to ros_2cli
  3. Source
    $ source install/setup.bash
  4. Use commands
    $ ROS 2 run pkg exe
    $ ROS 1 topic list
    $ # etc.