I'm trying to call the get_path-Action inside a SMACH state machine. Since I have the goalpoint (_geometrymsgs/PoseStamped) stored in an array, I need to pass it to the get_path-actionServer via the goal_cb-Param of the _smachros.SimpleActionState.
How do I have to modify my goal_cb to provide the Action with the required _use_startpose-bool and the _startpose-Pose? And furthermore, when I want to get the global path from my current position to the specified goal, do I even need to set the start_pose or does the get_path automatically plan from my current position when _use_startpose is false?
I'm trying to call the get_path-Action inside a SMACH state machine. Since I have the goalpoint (_geometrymsgs/PoseStamped) stored in an array, I need to pass it to the get_path-actionServer via the goal_cb-Param of the _smachros.SimpleActionState.
Doing so, I get the following error:
My code looks as follows:
with the goal_cb as:
How do I have to modify my goal_cb to provide the Action with the required _use_startpose-bool and the _startpose-Pose? And furthermore, when I want to get the global path from my current position to the specified goal, do I even need to set the start_pose or does the get_path automatically plan from my current position when _use_startpose is false?