ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
There is a lot of overhead for starting and stopping command line programs. They have to start up, join the communication network do their work and finish. You should probably write a simple rospy script which will call both services, or as @Murilo F. M. suggests consider restructuring your command datatype to allow more atomic operations.