Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

add incwaveheight service message #53

Merged
merged 4 commits into from
Sep 7, 2023
Merged
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
5 changes: 4 additions & 1 deletion buoy_interfaces/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,20 @@ find_package(std_msgs REQUIRED)

rosidl_generate_interfaces(${PROJECT_NAME}
"msg/BCRecord.msg"
"msg/IncWaveHeight.msg"
"msg/LatentData.msg"
"msg/PBCommandResponse.msg"
"msg/PBRecord.msg"
"msg/PBWatch.msg"
"msg/PCRecord.msg"
"msg/SCRecord.msg"
"msg/TFRecord.msg"
"msg/XBRecord.msg"
"msg/PBWatch.msg"
"srv/BCResetCommand.srv"
"srv/BenderCommand.srv"
"srv/BusCommand.srv"
"srv/GainCommand.srv"
"srv/IncWaveHeight.srv"
"srv/PCBattSwitchCommand.srv"
"srv/PCBiasCurrCommand.srv"
"srv/PCChargeCurrLimCommand.srv"
Expand Down
15 changes: 15 additions & 0 deletions buoy_interfaces/msg/IncWaveHeight.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# relative_time is the time height was computed in decimal seconds
# relative to simulation time in pose header.stamp
# time of wave height = header.stamp + relative_time
# Note: absolute_time from IncWaveHeight.srv converted to relative for response
# Note: all fixed-points in SDF are computed with relative_time = 0.0
float64 relative_time

# For now, position is always in world coords (use_buoy_origin always False)
bool use_buoy_origin

# header.stamp = simulation time of computation
# time of wave height = header.stamp + relative_time
# position = x, y, z(height above waterplane)
# orientation = normal vector (slope of wave) at position
geometry_msgs/PoseStamped pose
5 changes: 5 additions & 0 deletions buoy_interfaces/msg/LatentData.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
std_msgs/Header header

IncWaveHeight[] inc_wave_heights

# TODO(andermi) fill in other stuff
24 changes: 24 additions & 0 deletions buoy_interfaces/srv/IncWaveHeight.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# IncWaveHeight Request

# relative_time in decimal seconds to evaluate height at time relative to now (0)
# (Note: may be in future for wave prediction)
float64[] relative_time

# absolute_time in epoch decimal seconds (from 01/01/1970 or sim start) to evaluate height
# (Note: may be in future for wave prediction)
float64[] absolute_time

bool use_relative_time

# x, y is relative to buoy origin; otherwise world origin
bool use_buoy_origin

# x, y to evaluate height above waterplane
geometry_msgs/Point[] points

---

# IncWaveHeight Response

IncWaveHeight[] heights
bool valid