Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@ set(msg_files
"msg/Line2D.msg"
"msg/Line2DArray.msg"
"msg/SonarInfo.msg"
"msg/OperationMode.msg"
)

set(srv_files
"srv/MissionParameters.srv"
"srv/SendWaypoints.srv"
"srv/OperationModeSRV.srv"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider renaming this to somethign more descriptive like SetOperationMode

"srv/SetKillswitch.srv"
"srv/ToggleKillswitch.srv"
)

set(action_files
Expand Down Expand Up @@ -80,3 +84,6 @@ ament_package()
# Omg hello 😊
# Can we be friends, jk lul hihi 🤭
# Unless... 😳👉👈

# Okie :3
# Friendship accepted!1!!
8 changes: 8 additions & 0 deletions msg/OperationMode.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Enum operation mode
uint8 mode

# Operation mode
uint8 AUTONOMOUS = 1
uint8 MANUAL = 2
uint8 REFERENCE = 3

10 changes: 10 additions & 0 deletions srv/OperationModeSRV.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#request
uint8 mode
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This field should be the operation mode msg to be more explicit


vortex_msgs/OperationMode[] modes
Comment on lines +2 to +4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need both? Also do we need an array of modes?


---
#response
uint8 mode
bool killswitch_status

7 changes: 7 additions & 0 deletions srv/SetKillswitch.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#request
bool killswitch_on

---
#response
uint8 mode
bool killswitch_status
5 changes: 5 additions & 0 deletions srv/ToggleKillswitch.srv
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have both SetKillswitch and ToggleKillswitch? Is it not sufficient with one of them?

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#request
---
#response
uint8 mode
bool killswitch_status