Skip to content

Commit

Permalink
prep for public release
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-brinkman committed Feb 18, 2021
0 parents commit a5a0003
Show file tree
Hide file tree
Showing 58 changed files with 364 additions and 0 deletions.
96 changes: 96 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
cmake_minimum_required(VERSION 3.5)
project(fcat_msgs)

# Default to C99
if(NOT CMAKE_C_STANDARD)
set(CMAKE_C_STANDARD 99)
endif()

# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif()

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# find dependencies
find_package(ament_cmake REQUIRED)
find_package(builtin_interfaces REQUIRED)
find_package(rosidl_default_generators REQUIRED)

set(msg_files
"msg/ActuatorCalibrateCmd.msg"
"msg/ActuatorCspCmd.msg"
"msg/ActuatorCstCmd.msg"
"msg/ActuatorCsvCmd.msg"
"msg/ActuatorProfPosCmd.msg"
"msg/ActuatorProfTorqueCmd.msg"
"msg/ActuatorProfVelCmd.msg"
"msg/ActuatorSetOutputPositionCmd.msg"
"msg/ActuatorState.msg"
"msg/ActuatorStates.msg"
"msg/CommanderDisableCmd.msg"
"msg/CommanderEnableCmd.msg"
"msg/CommanderState.msg"
"msg/CommanderStates.msg"
"msg/ConditionalState.msg"
"msg/ConditionalStates.msg"
"msg/EgdCspCmd.msg"
"msg/EgdCstCmd.msg"
"msg/EgdCsvCmd.msg"
"msg/EgdState.msg"
"msg/EgdStates.msg"
"msg/El2124State.msg"
"msg/El2124States.msg"
"msg/El2124WriteAllChannelsCmd.msg"
"msg/El2124WriteChannelCmd.msg"
"msg/El3208State.msg"
"msg/El3208States.msg"
"msg/El3602State.msg"
"msg/El3602States.msg"
"msg/FaulterEnableCmd.msg"
"msg/FaulterState.msg"
"msg/FaulterStates.msg"
"msg/FilterState.msg"
"msg/FilterStates.msg"
"msg/FtsTareCmd.msg"
"msg/FunctionState.msg"
"msg/FunctionStates.msg"
"msg/JedSetCmdValueCmd.msg"
"msg/JedState.msg"
"msg/JedStates.msg"
"msg/ModuleState.msg"
"msg/PidActivateCmd.msg"
"msg/PidState.msg"
"msg/PidStates.msg"
"msg/SaturationState.msg"
"msg/SaturationStates.msg"
"msg/SchmittTriggerState.msg"
"msg/SchmittTriggerStates.msg"
"msg/SignalGeneratorState.msg"
"msg/SignalGeneratorStates.msg"
)

set(srv_files
"srv/ActuatorCalibrateCmd.srv"
"srv/ActuatorProfPosCmd.srv"
"srv/ActuatorProfTorqueCmd.srv"
"srv/ActuatorProfVelCmd.srv"
"srv/PidActivateCmd.srv"
)


rosidl_generate_interfaces(fcat_msgs
${msg_files}
${srv_files}
DEPENDENCIES builtin_interfaces
)
#install(DIRECTORY include/${PROJECT_NAME}/
# DESTINATION include/${PROJECT_NAME}
# )

ament_export_dependencies(rosidl_default_runtime)

ament_package()
9 changes: 9 additions & 0 deletions License.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Copyright (c) 2021, California Institute of Technology.
All rights reserved. Based on Government Sponsored Research under contracts NNN12AA01C, NAS7-1407 and/or NAS7-03001.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the California Institute of Technology (Caltech), its operating division the Jet Propulsion Laboratory (JPL), the National Aeronautics and Space Administration (NASA), nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE CALIFORNIA INSTITUTE OF TECHNOLOGY BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4 changes: 4 additions & 0 deletions msg/ActuatorCalibrateCmd.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
string name
float64 velocity
float64 accel
float64 max_current
5 changes: 5 additions & 0 deletions msg/ActuatorCspCmd.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
string name
float64 target_position
float64 position_offset
float64 velocity_offset
float64 torque_offset_amps
3 changes: 3 additions & 0 deletions msg/ActuatorCstCmd.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
string name
float64 target_torque_amps
float64 torque_offset_amps
4 changes: 4 additions & 0 deletions msg/ActuatorCsvCmd.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
string name
float64 target_velocity
float64 velocity_offset
float64 torque_offset_amps
5 changes: 5 additions & 0 deletions msg/ActuatorProfPosCmd.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
string name
float64 target_position
float64 profile_velocity
float64 profile_accel
uint8 relative
3 changes: 3 additions & 0 deletions msg/ActuatorProfTorqueCmd.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
string name
float64 target_torque_amps
float64 max_duration
4 changes: 4 additions & 0 deletions msg/ActuatorProfVelCmd.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
string name
float64 target_velocity
float64 profile_accel
float64 max_duration
2 changes: 2 additions & 0 deletions msg/ActuatorSetOutputPositionCmd.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string name
float64 position
20 changes: 20 additions & 0 deletions msg/ActuatorState.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
float64 actual_position
float64 actual_velocity
float64 actual_current
bool faulted
float64 cmd_position
float64 cmd_velocity
float64 cmd_current
float64 cmd_max_current
uint8 egd_state_machine_state
uint8 egd_mode_of_operation
uint8 sto_engaged
uint8 hall_state
uint8 target_reached
uint8 motor_on
uint8 fault_code
float64 bus_voltage
uint32 drive_temperature
int32 egd_actual_position
int32 egd_cmd_position
uint8 actuator_state_machine_state
2 changes: 2 additions & 0 deletions msg/ActuatorStates.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string[] names
fcat_msgs/ActuatorState[] states
1 change: 1 addition & 0 deletions msg/CommanderDisableCmd.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
string name
2 changes: 2 additions & 0 deletions msg/CommanderEnableCmd.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string name
float64 duration
1 change: 1 addition & 0 deletions msg/CommanderState.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bool enable
2 changes: 2 additions & 0 deletions msg/CommanderStates.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string[] names
fcat_msgs/CommanderState[] states
1 change: 1 addition & 0 deletions msg/ConditionalState.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bool output
2 changes: 2 additions & 0 deletions msg/ConditionalStates.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string[] names
fcat_msgs/ConditionalState[] states
5 changes: 5 additions & 0 deletions msg/EgdCspCmd.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
string name
int32 target_position
int32 position_offset
int32 velocity_offset
float64 torque_offset_amps
3 changes: 3 additions & 0 deletions msg/EgdCstCmd.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
string name
int32 target_torque_amps
float64 torque_offset_amps
4 changes: 4 additions & 0 deletions msg/EgdCsvCmd.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
string name
int32 target_velocity
int32 velocity_offset
float64 torque_offset_amps
36 changes: 36 additions & 0 deletions msg/EgdState.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
int32 actual_position
int32 actual_velocity
float64 actual_current
bool faulted
int32 cmd_position
int32 cmd_velocity
float64 cmd_current
float64 cmd_max_current
int32 cmd_ff_position
int32 cmd_ff_velocity
float64 cmd_ff_current
uint8 actual_state_machine_state
uint8 actual_mode_of_operation
bool async_sdo_in_prog
uint8 sto_engaged
uint8 hall_state
uint8 in_motion
uint8 warning
uint8 target_reached
uint8 motor_on
uint8 fault_code
float64 bus_voltage
float64 analog_input_voltage
uint8 digital_input_ch1
uint8 digital_input_ch2
uint8 digital_input_ch3
uint8 digital_input_ch4
uint8 digital_input_ch5
uint8 digital_input_ch6
uint8 digital_output_cmd_ch1
uint8 digital_output_cmd_ch2
uint8 digital_output_cmd_ch3
uint8 digital_output_cmd_ch4
uint8 digital_output_cmd_ch5
uint8 digital_output_cmd_ch6
uint32 drive_temperature
2 changes: 2 additions & 0 deletions msg/EgdStates.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string[] names
fcat_msgs/EgdState[] states
4 changes: 4 additions & 0 deletions msg/El2124State.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
uint8 level_ch1
uint8 level_ch2
uint8 level_ch3
uint8 level_ch4
2 changes: 2 additions & 0 deletions msg/El2124States.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string[] names
fcat_msgs/El2124State[] states
5 changes: 5 additions & 0 deletions msg/El2124WriteAllChannelsCmd.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
string name
uint8 channel_ch1
uint8 channel_ch2
uint8 channel_ch3
uint8 channel_ch4
3 changes: 3 additions & 0 deletions msg/El2124WriteChannelCmd.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
string name
uint8 channel
uint8 level
16 changes: 16 additions & 0 deletions msg/El3208State.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
float64 output_ch1
int16 adc_value_ch1
float64 output_ch2
int16 adc_value_ch2
float64 output_ch3
int16 adc_value_ch3
float64 output_ch4
int16 adc_value_ch4
float64 output_ch5
int16 adc_value_ch5
float64 output_ch6
int16 adc_value_ch6
float64 output_ch7
int16 adc_value_ch7
float64 output_ch8
int16 adc_value_ch8
2 changes: 2 additions & 0 deletions msg/El3208States.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string[] names
fcat_msgs/El3208State[] states
4 changes: 4 additions & 0 deletions msg/El3602State.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
float64 voltage_ch1
int32 adc_value_ch1
float64 voltage_ch2
int32 adc_value_ch2
2 changes: 2 additions & 0 deletions msg/El3602States.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string[] names
fcat_msgs/El3602State[] states
2 changes: 2 additions & 0 deletions msg/FaulterEnableCmd.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string name
bool enable
2 changes: 2 additions & 0 deletions msg/FaulterState.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bool enable
bool fault_active
2 changes: 2 additions & 0 deletions msg/FaulterStates.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string[] names
fcat_msgs/FaulterState[] states
1 change: 1 addition & 0 deletions msg/FilterState.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
float64 output
2 changes: 2 additions & 0 deletions msg/FilterStates.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string[] names
fcat_msgs/FilterState[] states
1 change: 1 addition & 0 deletions msg/FtsTareCmd.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
string name
1 change: 1 addition & 0 deletions msg/FunctionState.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
float64 output
2 changes: 2 additions & 0 deletions msg/FunctionStates.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string[] names
fcat_msgs/FunctionState[] states
2 changes: 2 additions & 0 deletions msg/JedSetCmdValueCmd.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string name
uint16 cmd
10 changes: 10 additions & 0 deletions msg/JedState.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uint16 status
uint16 cmd
uint32 w_raw
uint32 x_raw
uint32 y_raw
uint32 z_raw
float64 w
float64 x
float64 y
float64 z
2 changes: 2 additions & 0 deletions msg/JedStates.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string[] names
fcat_msgs/JedState[] states
2 changes: 2 additions & 0 deletions msg/ModuleState.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
float64 jitter
bool faulted
5 changes: 5 additions & 0 deletions msg/PidActivateCmd.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
string name
float64 setpoint
float64 deadband
float64 persistence_duration
float64 max_duration
5 changes: 5 additions & 0 deletions msg/PidState.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
bool active
float64 output
float64 kp_term
float64 ki_term
float64 kd_term
2 changes: 2 additions & 0 deletions msg/PidStates.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string[] names
fcat_msgs/PidState[] states
1 change: 1 addition & 0 deletions msg/SaturationState.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
float64 output
2 changes: 2 additions & 0 deletions msg/SaturationStates.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string[] names
fcat_msgs/SaturationState[] states
1 change: 1 addition & 0 deletions msg/SchmittTriggerState.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bool output
2 changes: 2 additions & 0 deletions msg/SchmittTriggerStates.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string[] names
fcat_msgs/SchmittTriggerState[] states
1 change: 1 addition & 0 deletions msg/SignalGeneratorState.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
float64 output
2 changes: 2 additions & 0 deletions msg/SignalGeneratorStates.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
string[] names
fcat_msgs/SignalGeneratorState[] states
23 changes: 23 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format2.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>fcat_msgs</name>
<version>0.5.0</version>
<description>Message Definitions for FCAT Node</description>
<maintainer email="[email protected]">Alex Brinkman</maintainer>
<license>CALTECH_2021 (see License.md)</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>rosidl_default_generators</buildtool_depend>

<build_depend>builtin_interfaces</build_depend>

<exec_depend>builtin_interfaces</exec_depend>
<exec_depend>rosidl_default_runtime</exec_depend>

<member_of_group>rosidl_interface_packages</member_of_group>

<export>
<build_type>ament_cmake</build_type>
</export>
</package>
8 changes: 8 additions & 0 deletions srv/ActuatorCalibrateCmd.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
string name
float64 velocity
float64 accel
float64 max_current

---
bool success
string message
8 changes: 8 additions & 0 deletions srv/ActuatorProfPosCmd.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
string name
float64 target_position
float64 profile_velocity
float64 profile_accel
uint8 relative
---
bool success
string message
Loading

0 comments on commit a5a0003

Please sign in to comment.