Skip to content

Commit 7a6a47f

Browse files
committed
Fix getGoalUuid implementation
It should return a List, since it is hashable. Signed-off-by: Jacob Perron <[email protected]>
1 parent f7d7f55 commit 7a6a47f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rosidl_generator_java/resource/action.java.em

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ public class @(type_name) implements ActionDefinition {
8282

8383
public static class SendGoalRequest extends @(type_name)_SendGoal_Request implements GoalRequestDefinition<@(type_name)> {
8484
public List<Byte> getGoalUuid() {
85-
return super.getGoalId().getUuid();
85+
// Return List since it's hash is based on the values (not the object pointer)
86+
return super.getGoalId().getUuidAsList();
8687
}
8788
}
8889

0 commit comments

Comments
 (0)