ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
3

Why is camera_info typically a topic?

asked 2022-07-12 17:43:24 -0500

If the camera extrinsics/intrinsics are usually fixed parameters, why is there usually a camera_info topic for cameras instead of having the extrinsics/intrinsics be in a parameter server?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
3

answered 2022-07-14 03:00:50 -0500

You're right that in virtually all cases, the camera extrinsics/intrinsics don't change. There only exception that I've encountered is when you're calibrating a camera and committing the calibration, the camera_info gets updated.

However, apart from that, using parameters would be much more cumbersome than using a topic: If you were using a set of parameters, you would need some way of telling the subscribers to an image topic where to look up the corresponding camera info parameters. The only way that I can think of would be a topic where the path to the parameters is published. At that point, it's much better to just publish the full camera_info on that topic. With the camera_info topic, you can use all of ROS's built-in features like topic remapping to get the info to the subscriber.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-07-12 17:43:24 -0500

Seen: 124 times

Last updated: Jul 14 '22