Skip to content

Conversation

@wayneparrott
Copy link
Collaborator

While working with rclnodejs actions I found myself copy-paste code for working with UUIDs in client-side goals. Rather than repeat this pattern multiple times I decided to update and externalize the ActionUuid found in lib/action/uuid.js for general use.

Changes:

  • Add action_uuid.d.ts - typings for ActionUuid
  • Updated uuid.js - adds ROS2 UUID convenience methods
  • Add test-action-uuid.js - tests for ActionUuid
  • Update test-action-client.js - replaced internal uuid code with ActionUuid.
  • Updated dtslint main.ts - added TypeScript type tests for ActionUuid

Fix #870

@wayneparrott
Copy link
Collaborator Author

If this PR is out of scope for this project I have an alt location with additional convenience support for rclnodejs actions here. I can host it there for a while and see how generally useful it is to others. So no pressure to accept!

Copy link
Member

@minggangw minggangw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sense to wrap these functions into a module, thanks for improving this and LGTM!

@minggangw minggangw merged commit 7fdebce into RobotWebTools:develop Jul 27, 2022
minggangw pushed a commit that referenced this pull request Jul 29, 2022
* Fix ActionServer cancelCallback declaration, doc & test

* impls ActionUuid w/ tests #870
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to access ActionUuid from typescript

2 participants