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

Purpose of visibility_control files in ros packages

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


I wonder how those visibility_control files work in a ROS system. Here is the link to the visibility_control file from ros2/demo. (

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

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

Mbuijs gravatar image

There's a link in those header files that refers to the GCC wiki:

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



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

Seen: 374 times

Last updated: Sep 21 '20