0
$\begingroup$

Rosanswers logo

I have calibrated my monocular camera using the ROS Tutorial. After calibrating the camera, a .yaml file got created which contains the various parameters of the camera.

Task: I want to print the coordinated of the center which are stored in .yml file. I think that i can do so by subscribing the camera parameter info but i don't know how can i do so?


Originally posted by rosqueries on ROS Answers with karma: 1 on 2014-03-16

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

rostopic echo /camera/camera_info

Change 'camera' to your camera name. This is really basic tutorial level stuff btw.


Originally posted by davinci with karma: 2573 on 2014-03-16

This answer was ACCEPTED on the original site

Post score: 0


Original comments

Comment by rosqueries on 2014-03-16:
i want to get the parameters in my program. For example i want to print them using cout<<focal_lenght<<center_x<<center_y;

Comment by rosqueries on 2014-03-16:
So, how do i get them into variable in C++ program

Comment by davinci on 2014-03-17:
See the publish / subscriber tutorial for creating a subscriber to a topic. Change the topic to the camera info topic.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.