Skip to content

Commit

Permalink
add msg and srv
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygerardmoore committed May 9, 2024
1 parent cd6d0d9 commit ffbf31e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions control_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ find_package(trajectory_msgs REQUIRED)

set(msg_files
msg/AdmittanceControllerState.msg
msg/CartesianTrajectoryGeneratorState.msg
msg/DynamicJointState.msg
msg/GripperCommand.msg
msg/InterfaceValue.msg
Expand Down Expand Up @@ -50,6 +51,7 @@ set(action_files
set(srv_files
srv/QueryCalibrationState.srv
srv/QueryTrajectoryState.srv
srv/ResetDofs.srv
)

rosidl_generate_interfaces(${PROJECT_NAME}
Expand Down
15 changes: 15 additions & 0 deletions control_msgs/msg/CartesianTrajectoryGeneratorState.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
std_msgs/Header header

string[] dof_names
# The set point, that is, the reference.
trajectory_msgs/MultiDOFJointTrajectoryPoint reference_world
trajectory_msgs/MultiDOFJointTrajectoryPoint reference_local
# Current value of the process (ie: latest sensor measurement or estimation on the controlled value).
trajectory_msgs/MultiDOFJointTrajectoryPoint feedback
# Adjusted feedback message for the interpolation in the local frame.
trajectory_msgs/MultiDOFJointTrajectoryPoint feedback_local
# The error of the controlled value, essentially reference - feedback (for a regular PID implementation).
trajectory_msgs/MultiDOFJointTrajectoryPoint error
# Current output of the controller.
trajectory_msgs/MultiDOFJointTrajectoryPoint output_world
trajectory_msgs/MultiDOFJointTrajectoryPoint output_local
8 changes: 8 additions & 0 deletions control_msgs/srv/ResetDofs.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This service enables resetting internal value of a controller with multiple degrees of freedom.

string[] names
float64[] positions # if present, positions should match size of dof names and also size of velocities/accelerations
float64[] velocities
float64[] accelerations
---
bool ok

0 comments on commit ffbf31e

Please sign in to comment.