How do I set the goalID in actionlib?
I have been using a simple_action_client to send goals to move_base.
According to the Detailed description of the actionlib (http://www.ros.org/wiki/actionlib/DetailedDescription#The_Messages (Actionlib Messages)):
When sending a goal, the action client generally generates both a unique Goal ID and a timestamp. However, it is possible that naive (aka dumb) clients might leave either of these empty. If so, the action server will populate them.
Empty stamp: Upon receipt by action server, stamp is set to now()
Empty id: Upon receipt by action server, id is auto-generated. Note that this ID is not very useful since, the action client doesn't have any way to know the ID that the server generated for its goal.
This implies to me that there is a way to create your own goal ID and send it with the goal. The only method call to send a goal to the actionlib server is http://ros.org/doc/groovy/api/actionlib/html/classactionlib_1_1SimpleActionClient.html#ae6a2e6904495e7c20c59e96af0d86801 (actionlib::SimpleActionClient< ActionSpec >::sendGoal):
void sendGoal (const Goal &goal, SimpleDoneCallback done_cb=SimpleDoneCallback(), SimpleActiveCallback active_cb=SimpleActiveCallback(), SimpleFeedbackCallback feedback_cb=SimpleFeedbackCallback())
The only Goal type I can find associated with move_base is MoveBaseGoal.msg which only includes a geometery_msgs/PoseStamped.msg.
I traced the sendGoal call from the http://ros.org/doc/groovy/api/actionlib/html/simple__action__client_8h_source.html#l00313 (simple_action_client.h) to the sendGoal call in http://ros.org/doc/groovy/api/actionlib/html/action__client_8h_source.html#l00115 (action_client.h) to the initGoal call in http://ros.org/doc/groovy/api/actionlib/html/goal__manager__imp_8h_source.html#l00056 (goal_manager_imp.h) which is the first place I can find that the goal id is set.
So, my question is If I can, how do I set the goal id of the goal message to move_base?
My goal is to be able to send a goal to move_base and then verify that it received the correct goal by checking the goal_id from the /move_base/status topic. I know that I could edit the actionlib code but that isn't a workable solution for me right now.