Skip to content

Commit

Permalink
LatentData (#54)
Browse files Browse the repository at this point in the history
* add incwaveheight service message

Signed-off-by: Michael Anderson <[email protected]>

* add latent data message and tweak incwaveheight

Signed-off-by: Michael Anderson <[email protected]>

* added spring and pto (still need a couple pto losses)

Signed-off-by: Michael Anderson <[email protected]>

* add force to ehpto msg

Signed-off-by: Michael Anderson <[email protected]>

* added forces from piston friction and wavebodyinteractions

Signed-off-by: Michael Anderson <[email protected]>

* add a couple fields

Signed-off-by: Michael Anderson <[email protected]>

* Added Shaft Mechanical Power to Latent Data

* Added additional loss terms to electrohydraulic loss terms

* Added fields

* Adjusted fields

* Add wave body total power to latent data (#57)

* added wave_body total forces

Signed-off-by: Michael Anderson <[email protected]>

* added buoy pose and twist to latent data

Signed-off-by: Michael Anderson <[email protected]>

---------

Signed-off-by: Michael Anderson <[email protected]>

---------

Signed-off-by: Michael Anderson <[email protected]>
Co-authored-by: Andrew Hamilton <[email protected]>
Co-authored-by: Andrew Hamilton <[email protected]>
  • Loading branch information
3 people authored Sep 21, 2023
1 parent d7ec045 commit 9cfbfff
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buoy_interfaces/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ find_package(sensor_msgs REQUIRED)
find_package(std_msgs REQUIRED)

rosidl_generate_interfaces(${PROJECT_NAME}
"msg/AirSpring.msg"
"msg/BCRecord.msg"
"msg/ElectroHydraulic.msg"
"msg/IncWaveHeight.msg"
"msg/LatentData.msg"
"msg/PBCommandResponse.msg"
Expand All @@ -22,6 +24,7 @@ rosidl_generate_interfaces(${PROJECT_NAME}
"msg/PCRecord.msg"
"msg/SCRecord.msg"
"msg/TFRecord.msg"
"msg/WaveBodyInteractions.msg"
"msg/XBRecord.msg"
"srv/BCResetCommand.srv"
"srv/BenderCommand.srv"
Expand Down
6 changes: 6 additions & 0 deletions buoy_interfaces/msg/AirSpring.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
float64 force # Newtons
float64 temperature # K
float64 heat_loss # dQ/dt in Watts
float64 piston_position # meters
float64 piston_velocity # m/s
float64 mass # kg
17 changes: 17 additions & 0 deletions buoy_interfaces/msg/ElectroHydraulic.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
float64 rpm
float64 upper_hydraulic_pressure # Pa
float64 lower_hydraulic_pressure # Pa
float64 force # Newtons

float64 supplied_hydraulic_power # Watts

float64 hydraulic_motor_loss
float64 relief_valve_loss
float64 shaft_mech_power # Watts

float64 motor_drive_i2r_loss
float64 motor_drive_switching_loss
float64 motor_drive_friction_loss
float64 load_dump_power
float64 battery_i2r_loss
float64 battery_storage_power
9 changes: 9 additions & 0 deletions buoy_interfaces/msg/LatentData.msg
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,13 @@ std_msgs/Header header

IncWaveHeight[] inc_wave_heights

AirSpring upper_spring
AirSpring lower_spring

ElectroHydraulic electro_hydraulic

WaveBodyInteractions wave_body

float64 piston_friction_force # Newtons

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

# Motion
geometry_msgs/Pose pose # position/orientation
geometry_msgs/Twist twist # linear/angular rates

# Forces/Torques
geometry_msgs/Wrench buoyancy
geometry_msgs/Wrench radiation
geometry_msgs/Wrench excitation

# Total power = dot(force, velocity) + dot(torque, omega)
float64 buoyancy_total_power # Watts
float64 radiation_total_power # Watts
float64 excitation_total_power # Watts

0 comments on commit 9cfbfff

Please sign in to comment.