Why sendGoal is called with one parameter
sendGoal is defined with 4 parameters in simple_action_client.h but while using this API we call it with one parameter viz send Goal(goal). Why ?
Following is how it is defined in simple_action_client.h
void SimpleActionClient<ActionSpec>::sendGoal(const Goal& goal,
SimpleDoneCallback done_cb,
SimpleActiveCallback active_cb,
SimpleFeedbackCallback feedback_cb)