From ba8dd20a6b34941a8247ec3c519fbc3b467c5cae Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Wed, 13 Sep 2023 18:27:13 +0200 Subject: [PATCH] Replace generic using namespace -> boost::placeholders::* --- .../src/cartesian_impedance_example_controller.cpp | 3 ++- .../src/dual_arm_cartesian_impedance_example_controller.cpp | 3 ++- franka_example_controllers/src/force_example_controller.cpp | 3 ++- franka_example_controllers/src/teleop_gripper_node.cpp | 3 ++- .../src/teleop_joint_pd_example_controller.cpp | 3 ++- franka_gazebo/src/franka_gripper_sim.cpp | 2 +- 6 files changed, 11 insertions(+), 6 deletions(-) diff --git a/franka_example_controllers/src/cartesian_impedance_example_controller.cpp b/franka_example_controllers/src/cartesian_impedance_example_controller.cpp index 703364a78..d81cfcc06 100644 --- a/franka_example_controllers/src/cartesian_impedance_example_controller.cpp +++ b/franka_example_controllers/src/cartesian_impedance_example_controller.cpp @@ -10,7 +10,8 @@ #include #include -using namespace boost::placeholders; +using boost::placeholders::_1; +using boost::placeholders::_2; #include diff --git a/franka_example_controllers/src/dual_arm_cartesian_impedance_example_controller.cpp b/franka_example_controllers/src/dual_arm_cartesian_impedance_example_controller.cpp index d93c66cb5..9883271bc 100644 --- a/franka_example_controllers/src/dual_arm_cartesian_impedance_example_controller.cpp +++ b/franka_example_controllers/src/dual_arm_cartesian_impedance_example_controller.cpp @@ -18,7 +18,8 @@ #include #include -using namespace boost::placeholders; +using boost::placeholders::_1; +using boost::placeholders::_2; namespace franka_example_controllers { diff --git a/franka_example_controllers/src/force_example_controller.cpp b/franka_example_controllers/src/force_example_controller.cpp index d2d84df6f..2df8902f9 100644 --- a/franka_example_controllers/src/force_example_controller.cpp +++ b/franka_example_controllers/src/force_example_controller.cpp @@ -11,7 +11,8 @@ #include -using namespace boost::placeholders; +using boost::placeholders::_1; +using boost::placeholders::_2; namespace franka_example_controllers { diff --git a/franka_example_controllers/src/teleop_gripper_node.cpp b/franka_example_controllers/src/teleop_gripper_node.cpp index 44fe8b170..26d2cdb9e 100644 --- a/franka_example_controllers/src/teleop_gripper_node.cpp +++ b/franka_example_controllers/src/teleop_gripper_node.cpp @@ -17,7 +17,8 @@ #include #include -using namespace boost::placeholders; +using boost::placeholders::_1; +using boost::placeholders::_2; using franka_gripper::GraspAction; using franka_gripper::HomingAction; diff --git a/franka_example_controllers/src/teleop_joint_pd_example_controller.cpp b/franka_example_controllers/src/teleop_joint_pd_example_controller.cpp index cb5f3e11a..398f80c82 100644 --- a/franka_example_controllers/src/teleop_joint_pd_example_controller.cpp +++ b/franka_example_controllers/src/teleop_joint_pd_example_controller.cpp @@ -17,7 +17,8 @@ #include using Vector7d = Eigen::Matrix; -using namespace boost::placeholders; +using boost::placeholders::_1; +using boost::placeholders::_2; const std::string kControllerName = "TeleopJointPDExampleController"; diff --git a/franka_gazebo/src/franka_gripper_sim.cpp b/franka_gazebo/src/franka_gripper_sim.cpp index 194f5600a..672b54205 100644 --- a/franka_gazebo/src/franka_gripper_sim.cpp +++ b/franka_gazebo/src/franka_gripper_sim.cpp @@ -4,7 +4,7 @@ #include #include -using namespace boost::placeholders; +using boost::placeholders::_1; namespace franka_gazebo {