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 17
17
18
18
import java .util .List ;
19
19
20
- public interface GoalRequestDefinition extends MessageDefinition {
20
+ public interface GoalRequestDefinition < T extends ActionDefinition > extends MessageDefinition {
21
21
MessageDefinition getGoal ();
22
22
List <Byte > getGoalUuid ();
23
23
}
Original file line number Diff line number Diff line change 15
15
16
16
package org .ros2 .rcljava .interfaces ;
17
17
18
- public interface GoalResponseDefinition extends MessageDefinition {
18
+ public interface GoalResponseDefinition < T extends ActionDefinition > extends MessageDefinition {
19
19
void accept (boolean accepted );
20
20
void setStamp (int sec , int nanosec );
21
21
}
Original file line number Diff line number Diff line change @@ -80,13 +80,13 @@ import @(action_import);
80
80
81
81
public class @ (type_name) implements ActionDefinition {
82
82
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) > {
84
84
public List<Byte > getGoalUuid () {
85
85
return super .getGoalId ().getUuid ();
86
86
}
87
87
}
88
88
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) > {
90
90
public void accept (boolean accepted) {
91
91
super .setAccepted (accepted);
92
92
}
You can’t perform that action at this time.
0 commit comments