Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work order ID and task ID #71

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Work order ID and task ID #71

wants to merge 6 commits into from

Conversation

aaronchongth
Copy link
Collaborator

@aaronchongth aaronchongth commented Feb 3, 2025

Addresses #63 (comment)

This will help with creating unique workcell task IDs, to be used for signals in parallel work orders, #63

  • Added work order ID, renamed ID to task ID where applicable, migrate changes and populate fields
  • removed step ID per discussion, update tests
  • generate task ID as {work_order_id}/{process_id}
  • remove id from WorkOrder msg, since that duplicates the purpose of number in the model
  • change number to id in WorkOrder model, use that for work_order_id instead, updated tests and readme

Verify

# Run demo
ros2 launch nexus_integration_tests launch.py headless:=0

# Run work order
cd ~/ws_nexus/src/nexus/nexus_integration_tests/
ros2 action send_goal /system_orchestrator/execute_order nexus_orchestrator_msgs/action/ExecuteWorkOrder "{order: {work_order: '$(cat config/pick_and_place.json)'}}"

# Check topics, verify that work order ID is populated with 23, task ID is populated with test-1/{processId}
ros2 topic echo /workcell_1/workcell_state
ros2 topic echo /workcell_2/workcell_state

Signed-off-by: Aaron Chong <[email protected]>
@aaronchongth aaronchongth requested review from Yadunund and removed request for Yadunund February 3, 2025 17:29
@aaronchongth aaronchongth marked this pull request as draft February 3, 2025 17:45
@aaronchongth aaronchongth marked this pull request as ready for review February 4, 2025 10:37
@aaronchongth aaronchongth requested a review from Yadunund February 4, 2025 10:37
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.

1 participant