How to get the info from a goal with more than one type in a goalCB?
Hey, I encountered the following problem: My goal definition in my action file has two types and I only know how to get one of this values from the acceptNewGoal().
My goal definition is:
#goal definition
float32 linear
float32 angular
---
and my goalCB:
void goalCB()
{
goal_.linear = as_.acceptNewGoal()->linear;
steer_.linear = goal_.linear*15/2;
steer_.angular = goal_.angular*45/2;
steer_pub_.publish(steer_);
}
As you can see I can only manage to get one value, not both. Anyone an idea how to do it? Or is it even possible? Thanks in advance!