ROS2 fish shell setup?
Hi, so I understand we need to source setup.bash every time to use the ros2 CLI. Is there any script to do this in fish shell?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org |
Hi, so I understand we need to source setup.bash every time to use the ros2 CLI. Is there any script to do this in fish shell?
You can use https://github.com/edc/bass to do that.
bass source /opt/ros/galactic/setup.bash
Also, if you launch fish after sourcing in bash, env values will be reflected.
// .bashrc
source /opt/ros/galactic/setup.bash
fish
For more advanced use cases, please take a look at my settings if you are interested. I've developed a couple of useful plugins.๐
@Jason1923 Yes, it's for ROS1. This does the equivalent things in ROS2.
register-python-argcomplete --shell fish ros2 | source
FYI: If this PR is merged, I guess argcomplete
is automatically loaded.
https://github.com/ros2/ros2cli/pull/326
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2021-07-30 22:09:15 -0500
Seen: 482 times
Last updated: Aug 01 '21
[ROS2] UnicodeEncodeError building test_msgs as an overlay on Windows
Is there a way to enable debug logging for colcon test?
Connecting ROSBridge to ROS2 (Foxy)
Colcon test not running gtests
Moveit2 tutoral launching multiple nodes
Slam Toolbox: Huge Drift in Heading when Mapping with a Depth Camera
URDF Tutorial for ROS2 Foxy throwing an exception
Including Package "image_transport" in ROS2