Sending goal to the server

The following code will create goal (type: control_msgs/FollowJointTrajectoryGoal) and then will send it to the actionlib server which listen on topic /clopema_controller/follow_joint_trajectory. The last number in the command represent time in seconds for which client will wait for the result. If timeout is reached goal is canceled and false is assign to the result.

goal = rosClopemaCreateMsg('control_msgs/FollowJointTrajectoryGoal');
fprintf('Sending goal\n');
result = rosClopemaSendGoal('control_msgs/FollowJointTrajectory', '/clopema_controller/follow_joint_trajectory', goal, 30.0)