-
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.
chore: cleaned up ROS sourcing & building scripts
- Loading branch information
Showing
8 changed files
with
20 additions
and
27 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[submodule "ros/newton_ros"] | ||
path = ros/newton_ros | ||
path = ros/pkgs/newton_ros | ||
url = https://github.com/TheNewtonCapstone/newton-ros | ||
[submodule "ros/newton_sim_ros"] | ||
path = ros/newton_sim_ros | ||
path = ros/pkgs/newton_sim_ros | ||
url = https://github.com/TheNewtonCapstone/newton-sim-ros |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# ROS package-specifics | ||
build/ | ||
install/ | ||
log/ |
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
Submodule newton_ros
updated
from 000000 to 043546
Submodule newton_sim_ros
updated
from 000000 to 014a30
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 |
---|---|---|
@@ -1,20 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# Purpose | ||
# This script is used to build all ROS packages for Newton | ||
# This script is used to source all ROS packages for Newton | ||
|
||
# Check if ROS2 is sourced | ||
if [ -z "$ROS_DISTRO" ]; then | ||
echo "ROS2 is not sourced. Please source ROS2." | ||
exit 1 | ||
fi | ||
|
||
# Go in each package directory (within the "ros" directory) and build it | ||
shopt -s nullglob | ||
|
||
for dir in ./*/; do | ||
echo "Sourcing package in $dir ..." | ||
cd "$dir" || exit | ||
source install/setup.bash | ||
cd - || exit | ||
done | ||
# Source ROS2 packages | ||
source install/local_setup.bash |