Skip to content

Commit ba8dd20

Browse files
committed
Replace generic using namespace -> boost::placeholders::*
1 parent f167306 commit ba8dd20

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

franka_example_controllers/src/cartesian_impedance_example_controller.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
#include <pluginlib/class_list_macros.h>
1111
#include <ros/ros.h>
1212

13-
using namespace boost::placeholders;
13+
using boost::placeholders::_1;
14+
using boost::placeholders::_2;
1415

1516
#include <franka_example_controllers/pseudo_inversion.h>
1617

franka_example_controllers/src/dual_arm_cartesian_impedance_example_controller.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
#include <tf/transform_listener.h>
1919
#include <tf_conversions/tf_eigen.h>
2020

21-
using namespace boost::placeholders;
21+
using boost::placeholders::_1;
22+
using boost::placeholders::_2;
2223

2324
namespace franka_example_controllers {
2425

franka_example_controllers/src/force_example_controller.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111

1212
#include <franka/robot_state.h>
1313

14-
using namespace boost::placeholders;
14+
using boost::placeholders::_1;
15+
using boost::placeholders::_2;
1516

1617
namespace franka_example_controllers {
1718

franka_example_controllers/src/teleop_gripper_node.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
#include <memory>
1818
#include <mutex>
1919

20-
using namespace boost::placeholders;
20+
using boost::placeholders::_1;
21+
using boost::placeholders::_2;
2122

2223
using franka_gripper::GraspAction;
2324
using franka_gripper::HomingAction;

franka_example_controllers/src/teleop_joint_pd_example_controller.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
#include <vector>
1818

1919
using Vector7d = Eigen::Matrix<double, 7, 1>;
20-
using namespace boost::placeholders;
20+
using boost::placeholders::_1;
21+
using boost::placeholders::_2;
2122

2223
const std::string kControllerName = "TeleopJointPDExampleController";
2324

franka_gazebo/src/franka_gripper_sim.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <franka_gazebo/franka_gripper_sim.h>
55
#include <pluginlib/class_list_macros.h>
66

7-
using namespace boost::placeholders;
7+
using boost::placeholders::_1;
88

99
namespace franka_gazebo {
1010

0 commit comments

Comments
 (0)