Skip to content

Commit

Permalink
config ros at the end - we changed the parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikN committed Jun 19, 2024
1 parent 399110a commit 582cda2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions snap/hooks/configure
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

source $SNAP/usr/bin/utils.sh

$SNAP/usr/bin/configure_hook_ros.sh

# Define the top-level key and the list of valid keys
VALID_DRIVER_KEYS=("mecanum" "include-camera-mount" "camera-model" "lidar-model" "db-serial-port" "manipulator-serial-port" )
VALID_WEBUI_KEYS=("layout" "port")
Expand Down Expand Up @@ -63,6 +61,9 @@ if [ "${VALUE}" == "manipulation" ]; then
snapctl set driver.include-camera-mount=False
fi

# moved to the end because for manipulator we usnet ros.namespace
$SNAP/usr/bin/configure_hook_ros.sh

# restart services with new ROS 2 config
for service in daemon web-ui web-ws; do
if snapctl services ${SNAP_NAME}.${service} | grep -qw enabled; then
Expand Down

0 comments on commit 582cda2

Please sign in to comment.