-
Notifications
You must be signed in to change notification settings - Fork 876
Sourcing setup.bash on ROS2 takes considerably longer compared to ROS1 #573
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Bug report
Sourcing the default ROS2 workspace via source /opt/ros/bouncy/setup.bash takes much longer than sourcing a ROS1 workspace. This makes setting it by default in .bashrc uncomfortable.
Required Info:
- Operating System: Ubuntu 18.04
- Installation type: binary
- Version or commit hash: bouncy
Steps to reproduce issue
- install
ros-bouncy-desktop - measure the time it takes to source the default workspace:
time source /opt/ros/bouncy/setup.bash
Expected behavior
Sourcing a default ROS1 workspace via time source /opt/ros/melodic/setup.bash is done without noticeable delay (0.1 seconds). It, therefore, can be added to the user's .bashrc to have a source environment with every new terminal.
Actual behavior
In ROS2 sourcing the default workspace takes a considerable amount of time (more than 2 seconds on my PC). Sourcing the default workspace by default in the .bashrc is therefore not an option. On less powerfull devices like the Raspberry Pi, sourcing takes even longer (more than 10 seconds).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request