Open waiyc opened 2 years ago
Hi @waiyc,
As far as I understood the major difference between action and service is that actions are asynchronous, whereas services are synchronous. I can understand why it would be interesting for you, but
Hi @torbsorb ,
Thank you for the reply. My main intention is to increase the "certainty" in knowing when the capturing process is done or failed. Currently, there is no response/feedback to tell the client that the server has completed the capturing. The only way to know the capturing process is completed is by subscribing to the image topic, is my understanding correct?
Hi @waiyc.
You could wait for the image or point cloud topics, but it would be better to check the return value of ros::service::call()
function (if you use C++ API) or rospy.ServiceProxy
for the Python API. These functions should be blocking until the capture service is finished and has returned either true or false.
Any plan to include ROS action client and server as an alternative option for capturing data from Zivid camera? Due to the fact that the data capturing time varies depends on the capturing setting, it is better to use action over service? As we can expect the action server to return the capturing result or we can choose to preempt it if we need to.