Passing Instructions between taskflow nodes #223
Replies: 7 comments
-
Actually, the segmentation fault can be mitigated by capturing the
and just using a reference for the
|
Beta Was this translation helpful? Give feedback.
-
You will need to write your own graph taskflow. An example of this can be seen by looking at the raster graph taskflow. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply! The code above is contained in my own graph taskflow. I looked at this exampe: However when I do a I think the example modifies the seed of the next planner? Would this accomplish the same effect as adding an end instruction which gets then added to the input instructions here? |
Beta Was this translation helpful? Give feedback.
-
Take a look at this section of code. You want to provide it with the index instead of the actual waypoint. There is a comment explaining why this has to be done, but in short is because the result data structure has not been generated so you are unable to reference it directly. |
Beta Was this translation helpful? Give feedback.
-
This is the index into the vector of the high level composite instruction. In your case I believe the this should be index 1 for B. |
Beta Was this translation helpful? Give feedback.
-
Awesome, thanks a lot for your help and quick response! If I may ask: Is there a way to let the rviz trajectory visualization plugin display the full path? Currently it only loops through the I also flattened out all |
Beta Was this translation helpful? Give feedback.
-
I recommend trying the TesseractWorkbench plugin which may have what you need. This provides more details. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone!
Setup
I am planning a trajectory where I want to compute the second segment
B
before the firstA
.My Taskflow generator has three Tasks
B -> B' -> A
.The input composite is of the format:
Question
How do I pass the first move instruction of segment
B
as the goal of segmentA
? Currently I am getting a segmentation fault error.Code
Since the input instructions for the
TaskInput
are const, I figured I create a subcontainer of theTaskInput
datastructure for task A and write a taskflow nodeB'
that usessetEndInstruction()
on the subContainers' reference with the firstMoveInstruction
of taskB
.Then the
motion_planner_task_generator
should add the end instruction to the planner requests instructions.Here is how I construct the subcontainer. Note that I am not directly going from
B -> B'
but I added a debug printer task.Here is my code of
B'
:I tried using the latest taskflow v3.4, which supports passing additional data into the tasks but hat no luck with that either.
Beta Was this translation helpful? Give feedback.
All reactions