Skip to content

Instantly share code, notes, and snippets.

@plusangel
Created April 21, 2019 11:27
Show Gist options
  • Save plusangel/84939e9dc43cbfc2a7a7f857e32698e5 to your computer and use it in GitHub Desktop.
Save plusangel/84939e9dc43cbfc2a7a7f857e32698e5 to your computer and use it in GitHub Desktop.
bashrc for ROS
# ROS1
export ROS_DISTRO=melodic
source /opt/ros/$ROS_DISTRO/setup.bash
source /home/user/catkin_ws/devel/setup.bash
# ROS2
export ROS_DISTRO=crystal
source /opt/ros/$ROS_DISTRO/setup.bash
source /home/user/ros2_ws/install/local_setup.bash
# bridge
source /opt/ros/melodic/setup.bash
source /opt/ros/crystal/local_setup.bash
source /home/user/catkin_ws/devel/setup.bash
source /home/user/ros2_ws/install/local_setup.bash
@plusangel
Copy link
Author

. /home/user/.bashrc_bridge
export ROS_MASTER_URI=http://localhost:11311
ros2 run ros1_bridge dynamic_bridge

@plusangel
Copy link
Author

. /home/user/.bashrc_ros1
. /home/user/.bashrc_ros2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment