File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
rcljava_common/src/main/java/org/ros2/rcljava/interfaces
main/java/org/ros2/rcljava/action
test/java/org/ros2/rcljava/action Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -346,7 +346,7 @@ private action_msgs.srv.CancelGoal_Response executeCancelRequest(
346346
347347 // Process user callback for each goal in cancel request
348348 for (action_msgs .msg .GoalInfo goalInfo : inputMessage .getGoalsCanceling ()) {
349- List <Byte > goalUuid = goalInfo .getGoalId ().getUuid ();
349+ List <Byte > goalUuid = goalInfo .getGoalId ().getUuidAsList ();
350350 // It's possible a goal may not be tracked by the user
351351 if (!this .goalHandles .containsKey (goalUuid )) {
352352 logger .warn ("Ignoring cancel request for untracked goal handle with ID '" + goalUuid + "'" );
Original file line number Diff line number Diff line change @@ -223,8 +223,8 @@ public final void testCancelGoal() throws Exception {
223223
224224 assertEquals (true , cancelResponseFuture .isDone ());
225225 action_msgs .srv .CancelGoal_Response cancelResponse = cancelResponseFuture .get ();
226- List < action_msgs .msg .GoalInfo > goalsCanceling = cancelResponse .getGoalsCanceling ();
227- assertEquals (1 , goalsCanceling .size () );
226+ action_msgs .msg .GoalInfo [] goalsCanceling = cancelResponse .getGoalsCanceling ();
227+ assertEquals (1 , goalsCanceling .length );
228228
229229 // Assert cancel callback was triggered
230230 assertNotEquals (null , this .cancelCallback .goalHandle );
Original file line number Diff line number Diff line change 1919
2020public interface GoalRequestDefinition <T extends ActionDefinition > extends MessageDefinition {
2121 MessageDefinition getGoal ();
22- byte [] getGoalUuid ();
22+ List < Byte > getGoalUuid ();
2323}
You can’t perform that action at this time.
0 commit comments