0
$\begingroup$

I have been asked to write code to implement serial communications with a camera in order to control its pedestal (movable base) as well as set a few dozen other camera options. The catch is that I have to make it usable by ROS.

What would be the best practice to implement this functionality in ROS? I understand the concept of services, but I think that there should be a better way than creating a different service/file for each option.

Thanks, Daniel.

$\endgroup$
  • $\begingroup$ This question is probably better suited to answers.ros.org because it is only about ROS and not specifically robotics. $\endgroup$ – Ben Feb 17 '15 at 0:46
0
$\begingroup$

Why not write a subscription based node? It could take messages from whoever then passes the information on to the camera. From what you've said, it seems like a service wouldn't be necessary.

Response. Yes. Create a new message that has all the necessary fields and a new topic, maybe /camera_parameters.

$\endgroup$
  • $\begingroup$ This does seem like a better idea. Would you suggest creating a topic with all the parameters? $\endgroup$ – Daniel D'Souza Feb 16 '15 at 21:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.