Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 75

How to get the info from a goal with more than one type in a goalCB?

$
0
0
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!

Viewing all articles
Browse latest Browse all 75

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>