From 582cda27e9a2f10dca3d9c01dde124bc9b437caa Mon Sep 17 00:00:00 2001 From: dominikn Date: Wed, 19 Jun 2024 19:22:57 +0000 Subject: [PATCH] config ros at the end - we changed the parameters --- snap/hooks/configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/snap/hooks/configure b/snap/hooks/configure index 3be4c0b..0917d99 100644 --- a/snap/hooks/configure +++ b/snap/hooks/configure @@ -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") @@ -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