@@ -43,7 +43,8 @@ PYBIND11_MODULE(_core, m) {
4343
4444 py::object robot_state =
4545 (py::object)py::module_::import (" rcs" ).attr (" common" ).attr (" RobotState" );
46- py::class_<rcs::hw::FrankaState>(hw, " FrankaState" , robot_state).def (py::init<>());
46+ py::class_<rcs::hw::FrankaState>(hw, " FrankaState" , robot_state)
47+ .def (py::init<>());
4748 py::class_<rcs::hw::FrankaLoad>(hw, " FrankaLoad" )
4849 .def (py::init<>())
4950 .def_readwrite (" load_mass" , &rcs::hw::FrankaLoad::load_mass)
@@ -99,7 +100,8 @@ PYBIND11_MODULE(_core, m) {
99100
100101 py::object robot =
101102 (py::object)py::module_::import (" rcs" ).attr (" common" ).attr (" Robot" );
102- py::class_<rcs::hw::Franka, std::shared_ptr<rcs::hw::Franka>>(hw, " Franka" , robot)
103+ py::class_<rcs::hw::Franka, std::shared_ptr<rcs::hw::Franka>>(hw, " Franka" ,
104+ robot)
103105 .def (py::init<const std::string &,
104106 std::optional<std::shared_ptr<rcs::common::Kinematics>>>(),
105107 py::arg (" ip" ), py::arg (" ik" ) = std::nullopt )
@@ -117,9 +119,11 @@ PYBIND11_MODULE(_core, m) {
117119 &rcs::hw::Franka::osc_set_cartesian_position,
118120 py::arg (" desired_pos_EE_in_base_frame" ))
119121 .def (" controller_set_joint_position" ,
120- &rcs::hw::Franka::controller_set_joint_position, py::arg (" desired_q" ))
122+ &rcs::hw::Franka::controller_set_joint_position,
123+ py::arg (" desired_q" ))
121124 .def (" stop_control_thread" , &rcs::hw::Franka::stop_control_thread)
122- .def (" automatic_error_recovery" , &rcs::hw::Franka::automatic_error_recovery)
125+ .def (" automatic_error_recovery" ,
126+ &rcs::hw::Franka::automatic_error_recovery)
123127 .def (" double_tap_robot_to_continue" ,
124128 &rcs::hw::Franka::double_tap_robot_to_continue)
125129 .def (" set_cartesian_position_internal" ,
0 commit comments