-
Notifications
You must be signed in to change notification settings - Fork 151
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
ROS2 branch: difficulty in retrieving Stage ID #324
Comments
If I do |
I would like to have the id available when I create the task so a state machine can execute the stages individually (by ID). |
I think you need to pass a pointer to the introspection when filling the message |
Exactly. The IDs were intended for communication with rviz only. If this is not required, the IDs stay zero. |
Thanks @JafarAbdi. That does work for filling the message. It doesn't fix the bigger problem of how to correlate the sub-trajectories to a Stage ID somehow, so that the state machine can call the stages individually. I see some stuff in remote_task_model.cpp that might help, like:
I have to say that this API feels clunky. I guess that what I am trying is not common. |
Hi Andy, |
Yep, Felix's idea is what I'm looking for. Thanks. |
I'm having some trouble retrieving stage ID's. I've tried 4 different ways (attached).
For example, here I don't explicitly set the stage ID. When printed, all of the
id
fields are 0!The other ways I tried (in brief) are:
Using Stage::introspectionId() where the stage is a member variabe unique_ptr
Setting the id explicity with
task_.introspection().stageId(*open_fingers_stage_);
. This does not compile.Using Stage::introspectionId() where the stage is a local unique_ptr
introspectionid_member_variable.txt
print_message.txt
set_introspection_id_explicitly.txt
stage_introspectionId.txt
The text was updated successfully, but these errors were encountered: