We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.bashrc
1 parent 79ac41c commit 2b509a7Copy full SHA for 2b509a7
template_ws/docker/.bashrc
@@ -1,5 +1,16 @@
1
# Source global ROS2 environment
2
source /opt/ros/$ROS_DISTRO/setup.bash
3
+# Check if the workspace has been built by check install/setup.bash
4
+if [ ! -f $ROS2_WS/install/setup.bash ]; then
5
+ echo "Workspace has not been built yet. Building workspace..."
6
+ cd $ROS2_WS
7
+ # TODO: If command `arch` outputs `aarch64`, consider adding `--packages-ignore <package>` to ignore x86 packages
8
+ if [ $(arch) == "aarch64" ]; then
9
+ colcon build --symlink-install
10
+ else
11
12
+ fi
13
+ echo "Workspace built."
14
+fi
15
# Source workspace environment
-# Note: If you have not built your workspace yet, the following command will fail
16
source $ROS2_WS/install/setup.bash
0 commit comments