First time here? Check out the FAQ!
answered 2012-03-14 05:18:30 -0500
It seems that your client is only running once and exiting because you are not using ros::spin().
Please refer to the documentation:
Callbacks and Spinning