Skip to content

Commit

Permalink
Replace generic using namespace -> boost::placeholders::*
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Jun 20, 2024
1 parent f167306 commit ba8dd20
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#include <pluginlib/class_list_macros.h>
#include <ros/ros.h>

using namespace boost::placeholders;
using boost::placeholders::_1;
using boost::placeholders::_2;

#include <franka_example_controllers/pseudo_inversion.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
#include <tf/transform_listener.h>
#include <tf_conversions/tf_eigen.h>

using namespace boost::placeholders;
using boost::placeholders::_1;
using boost::placeholders::_2;

namespace franka_example_controllers {

Expand Down
3 changes: 2 additions & 1 deletion franka_example_controllers/src/force_example_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@

#include <franka/robot_state.h>

using namespace boost::placeholders;
using boost::placeholders::_1;
using boost::placeholders::_2;

namespace franka_example_controllers {

Expand Down
3 changes: 2 additions & 1 deletion franka_example_controllers/src/teleop_gripper_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
#include <memory>
#include <mutex>

using namespace boost::placeholders;
using boost::placeholders::_1;
using boost::placeholders::_2;

using franka_gripper::GraspAction;
using franka_gripper::HomingAction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
#include <vector>

using Vector7d = Eigen::Matrix<double, 7, 1>;
using namespace boost::placeholders;
using boost::placeholders::_1;
using boost::placeholders::_2;

const std::string kControllerName = "TeleopJointPDExampleController";

Expand Down
2 changes: 1 addition & 1 deletion franka_gazebo/src/franka_gripper_sim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <franka_gazebo/franka_gripper_sim.h>
#include <pluginlib/class_list_macros.h>

using namespace boost::placeholders;
using boost::placeholders::_1;

namespace franka_gazebo {

Expand Down

0 comments on commit ba8dd20

Please sign in to comment.