-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged entrypoint files, implementing #2
- Loading branch information
1 parent
92562d7
commit cd8e8c4
Showing
5 changed files
with
36 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
rosversion="unknown" | ||
wstxt="ros2_ws.txt" | ||
if [ -f /opt/ros/humble/setup.bash ]; then | ||
rosversion="humble" | ||
elif [ -f /opt/ros/noetic/setup.bash ]; then | ||
rosversion="noetic" | ||
wstxt="ros_ws.txt" | ||
fi | ||
if [ "$rosversion" != "unknown" ]; then | ||
. /opt/ros/$rosversion/setup.bash | ||
if [ "$rosversion" == "humble" ]; then | ||
export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp | ||
fi | ||
while read -r line | ||
do | ||
bl="$(basename $line)" | ||
wstxt="ros2_ws.txt" | ||
cd /opt/ros/$bl | ||
if rosdep check -i --from-path src --rosdistro $rosversion -y | grep -q 'System dependencies have not been satisfied'; then | ||
apt update | ||
fi | ||
rosdep install -i --from-path src --rosdistro $rosversion -y | ||
if [ "$rosversion" == "humble" ]; then | ||
colcon build --symlink-install | ||
. /opt/ros/$bl/install/setup.bash | ||
else | ||
catkin_make | ||
. /opt/ros/$bl/devel/setup.bash | ||
fi | ||
done < /opt/ros/$wstxt | ||
. /usr/share/gazebo/setup.bash | ||
exec "$@" | ||
fi |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters