ros-controls / ros_controllers

Generic robotic controllers to accompany ros_control
http://wiki.ros.org/ros_control
BSD 3-Clause "New" or "Revised" License
547 stars 524 forks source link

Duplicate function definition in joint_trajectory_controller #602

Open Hugal31 opened 2 years ago

Hugal31 commented 2 years ago

As said in #153, some defined function in the internal namespace are not inlined in joint_trajectory_controller_impl.h.

This cause a "duplicate definition" issue when trying to link a library that include joint_trajectory_controller.h in two compile units.

A simple fix would be to move those funciton in an anonymous namespace, or add the inline or static qualifiers.