Skip to content

Commit 0c5b9ca

Browse files
authored
Merge pull request #286 from KKalem/geofence_upgrades
Geofence upgrades
2 parents ea52b01 + 5c174fb commit 0c5b9ca

File tree

6 files changed

+207
-49
lines changed

6 files changed

+207
-49
lines changed

behaviours/actionable_geofence/actionable_geofence/geofence_node.py

Lines changed: 196 additions & 47 deletions
Large diffs are not rendered by default.

messages/smarc_msgs/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ rosidl_generate_interfaces(${PROJECT_NAME}
3232
"msg/CTD.msg"
3333
"msg/ISSS.msg"
3434
"msg/GeofenceStatusStamped.msg"
35+
"msg/GeofencePolygonsStamped.msg"
3536
"action/BaseAction.action"
3637
DEPENDENCIES geometry_msgs geographic_msgs nav_msgs sensor_msgs std_msgs builtin_interfaces
3738
)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
std_msgs/Header header
2+
3+
geometry_msgs/Polygon[] geofence
4+
geometry_msgs/Polygon[] islands

messages/smarc_msgs/msg/GeofenceStatusStamped.msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ uint8 status
88
uint8 REASON_FENCE = 0 # horizontally outside
99
uint8 REASON_CEILING = 1 # altitude above ceiling altitude
1010
uint8 REASON_FLOOR = 2 # altitude below floor altitude
11+
uint8 REASON_ISLAND = 3 # point inside an island
1112
uint8 outside_reason

messages/smarc_msgs/msg/Topics.msg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ string ALTITUDE_TOPIC = 'smarc/altitude' #float32
1717
string BT_STATUS_TOPIC = 'smarc/bt_status' #string
1818

1919

20-
string GET_GEOFENCE_SERVICE_TOPIC = 'smarc/srv/get_geofence' # geographic_msgs/srv/GetGeoPath
20+
string CHECK_GEOFENCE_SERVICE_TOPIC = 'smarc/srv/check_geofence' # geographic_msgs/srv/GetGeoPath
2121
string GEOFENCE_STATUS_TOPIC = 'smarc/geofence_status' # smarc_msgs/msg/GeofenceStatusStamped
22+
string GEOFENCE_POLYGONS_TOPIC = 'smarc/geofence_polygons' #smarc_msgs/msg/GeofencePolygonsStamped
2223

2324
################
2425
# WARA-PS Topics

scripts/smarc_bringups/scripts/dji_bringup.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,9 @@ tmux send-keys "ros2 launch auv_state_estimation projection_launch.py namespace:
219219
tmux new-window -t $SESSION:5 -n 'Aux'
220220
tmux rename-window "Aux"
221221
tmux select-window -t $SESSION:5
222-
tmux send-keys "ros2 run actionable_geofence geofence_node --ros-args -r __ns:=/$ROBOT_NAME -p use_sim_time:=$USE_SIM_TIME" C-m
222+
tmux send-keys "ros2 run actionable_geofence geofence_node --ros-args -r __ns:=/$ROBOT_NAME \
223+
-p use_sim_time:=$USE_SIM_TIME \
224+
-p map_frame:=$ROBOT_NAME/map" C-m
223225

224226

225227
############

0 commit comments

Comments
 (0)