File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
rcljava_common/src/main/java/org/ros2/rcljava/interfaces
rosidl_generator_java/resource Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 1616package org .ros2 .rcljava .interfaces ;
1717
1818public interface ActionDefinition {
19- interface ActionGoal <T extends ActionDefinition > {}
20- interface ActionResult <T extends ActionDefinition > {}
21- interface ActionFeedback <T extends ActionDefinition > {}
22-
2319 Class <? extends GoalRequestDefinition > getSendGoalRequestType ();
2420 Class <? extends GoalResponseDefinition > getSendGoalResponseType ();
2521 Class <? extends MessageDefinition > getGetResultRequestType ();
Original file line number Diff line number Diff line change @@ -80,12 +80,6 @@ import @(action_import);
8080
8181public class @ (type_name) implements ActionDefinition {
8282
83- public static class Goal extends @ (type_name)_Goal implements ActionGoal< @ (type_name)> {}
84-
85- public static class Result extends @ (type_name)_Result implements ActionResult< @ (type_name)> {}
86-
87- public static class Feedback extends @ (type_name)_Feedback implements ActionFeedback< @ (type_name)> {}
88-
8983 public static class SendGoalRequest extends @ (type_name)_SendGoal_Request implements GoalRequestDefinition {
9084 public List<Byte > getGoalUuid () {
9185 return super .getGoalId ().getUuid ();
@@ -133,4 +127,10 @@ public class @(type_name) implements ActionDefinition {
133127 }
134128
135129 public static native long getActionTypeSupport ();
130+
131+ public static final Class< @ (type_name)_Goal> GoalType = @ (type_name)_Goal .class ;
132+
133+ public static final Class< @ (type_name)_Result> ResultType = @ (type_name)_Result .class ;
134+
135+ public static final Class< @ (type_name)_Feedback> FeedbackType = @ (type_name)_Feedback .class ;
136136}
You can’t perform that action at this time.
0 commit comments