Herowaree

ros2 bash configuration

Jan 14th, 2025
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. # source ROS
  2. source /opt/ros/humble/setup.bash
  3. # source Gazebo
  4. source /usr/share/gazebo/setup.bash
  5. # source workspace
  6. source $HOME/workspace/install/setup.bash
  7. # reduce colcon spam
  8. export COLCON_LOG_LEVEL=30
  9. # make logs colorful
  10. export RCUTILS_COLORIZED_OUTPUT=1
  11. # force logging output to be buffered
  12. export RCUTILS_LOGGING_BUFFERED_STREAM=1
  13. # format logs in terminal
  14. export RCUTILS_CONSOLE_OUTPUT_FORMAT="[{severity}] [{time}] [{name}]: {message} ({function_name}() at {file_name}:{line_number})"
  15. # reduce depraction warning spam in colcon
  16. export PYTHONWARNINGS='ignore:::setuptools.command.install,ignore:::setuptools.command.easy_install,ignore:::pkg_resources'
  17. # make ROS 2 system not visible to other computers on the local network
  18. export ROS_LOCALHOST_ONLY=1
  19. # colcon tab completion
  20. source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.bash
  21.  
Advertisement
Add Comment
Please, Sign In to add comment