Skip to content

Commit dcc64a5

Browse files
mathias-luedtkeNoel215
authored andcommitted
Enforce internal linkage for classes in test_gripper_controllers.hpp
To avoid problems with HW_IF_POSITION (-Wsubobject-linkage)
1 parent 9350ddd commit dcc64a5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

gripper_controllers/test/test_gripper_controllers.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ using hardware_interface::HW_IF_POSITION;
3030
using hardware_interface::HW_IF_VELOCITY;
3131
using hardware_interface::StateInterface;
3232

33+
namespace
34+
{
35+
3336
// subclassing and friending so we can access member variables
3437
class FriendGripperController
3538
: public gripper_action_controller::GripperActionController<HW_IF_POSITION>
@@ -62,4 +65,6 @@ class GripperControllerTest : public ::testing::Test
6265
CommandInterface joint_1_pos_cmd_{joint_name_, HW_IF_POSITION, &joint_commands_[0]};
6366
};
6467

68+
} // anonymous namespace
69+
6570
#endif // TEST_GRIPPER_CONTROLLERS_HPP_

0 commit comments

Comments
 (0)