Skip to content

Commit

Permalink
fix configure hook
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikN committed Jul 25, 2024
1 parent 2f2227e commit 1a2d0b9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions snap/local/local-ros/configure_hook_ros.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ if [ "$TRANSPORT_SETTING" = "rmw_fastrtps_cpp" ] || [ "$TRANSPORT_SETTING" = "sh
fi
fi

# Make sure ros-humble-ros-base is connected
ROS_PLUG="ros-humble-ros-base"

if ! snapctl is-connected ${ROS_PLUG}; then
log_and_echo "Plug '${ROS_PLUG}' isn't connected. Please run:"
log_and_echo "snap connect ${SNAP_NAME}:${ROS_PLUG} ${ROS_PLUG}:${ROS_PLUG}"
exit 1
fi
# # Make sure ros-humble-ros-base is connected
# ROS_PLUG="ros-humble-ros-base"

# if ! snapctl is-connected ${ROS_PLUG}; then
# log_and_echo "Plug '${ROS_PLUG}' isn't connected. Please run:"
# log_and_echo "snap connect ${SNAP_NAME}:${ROS_PLUG} ${ROS_PLUG}:${ROS_PLUG}"
# exit 1
# fi

# Create the ${SNAP_COMMON}/ros.env file and export variables (for bash session running ROS2)
ROS_ENV_FILE="${SNAP_COMMON}/ros.env"
Expand Down

0 comments on commit 1a2d0b9

Please sign in to comment.