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

Purpose of visibility_control files in ros packages

asked 2020-09-16 19:45:39 -0500

Hi,

I wonder how those visibility_control files work in a ROS system. Here is the link to the visibility_control file from ros2/demo. (https://github.com/ros2/demos/blob/ma...)

I can also see many other ROS working groups are using the same visibility control files so I hope I can also understand the purpose of it properly and utilize them in my projects.

Thank you in advance, Ryan

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-09-21 06:53:00 -0500

Mbuijs gravatar image

There's a link in those header files that refers to the GCC wiki: https://gcc.gnu.org/wiki/Visibility

As far as I know the macro's defined in these files help in determining when a function (or class / struct) should be internal or external when generating a (shared) library. When getting started, you can safely ignore these macro's.

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2020-09-16 19:45:39 -0500

Seen: 440 times

Last updated: Sep 21 '20