File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
rcljava_common/src/main/java/org/ros2/rcljava/interfaces
rosidl_generator_java/resource Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1717
1818import java .util .List ;
1919
20- public interface GoalRequestDefinition extends MessageDefinition {
20+ public interface GoalRequestDefinition < T extends ActionDefinition > extends MessageDefinition {
2121 MessageDefinition getGoal ();
2222 List <Byte > getGoalUuid ();
2323}
Original file line number Diff line number Diff line change 1515
1616package org .ros2 .rcljava .interfaces ;
1717
18- public interface GoalResponseDefinition extends MessageDefinition {
18+ public interface GoalResponseDefinition < T extends ActionDefinition > extends MessageDefinition {
1919 void accept (boolean accepted );
2020 void setStamp (int sec , int nanosec );
2121}
Original file line number Diff line number Diff line change @@ -80,13 +80,13 @@ import @(action_import);
8080
8181public class @ (type_name) implements ActionDefinition {
8282
83- public static class SendGoalRequest extends @ (type_name)_SendGoal_Request implements GoalRequestDefinition {
83+ public static class SendGoalRequest extends @ (type_name)_SendGoal_Request implements GoalRequestDefinition< @ (type_name) > {
8484 public List<Byte > getGoalUuid () {
8585 return super .getGoalId ().getUuid ();
8686 }
8787 }
8888
89- public static class SendGoalResponse extends @ (type_name)_SendGoal_Response implements GoalResponseDefinition {
89+ public static class SendGoalResponse extends @ (type_name)_SendGoal_Response implements GoalResponseDefinition< @ (type_name) > {
9090 public void accept (boolean accepted) {
9191 super .setAccepted (accepted);
9292 }
You can’t perform that action at this time.
0 commit comments