File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,10 +105,10 @@ class Gripper:
105105 def shut (self ) -> None : ...
106106
107107class GripperConfig :
108- pass
108+ def __init__ ( self ) -> None : ...
109109
110110class GripperState :
111- pass
111+ def __init__ ( self ) -> None : ...
112112
113113class Hand :
114114 def __init__ (self ) -> None : ...
@@ -276,7 +276,7 @@ class RobotPlatform:
276276 def value (self ) -> int : ...
277277
278278class RobotState :
279- pass
279+ def __init__ ( self ) -> None : ...
280280
281281class RobotType :
282282 """
Original file line number Diff line number Diff line change @@ -372,9 +372,9 @@ PYBIND11_MODULE(_core, m) {
372372 .def_readwrite (" tcp_offset" , &rcs::sim::SimRobotConfig::tcp_offset)
373373 .def_readwrite (" robot_platform" ,
374374 &rcs::common::RobotConfig::robot_platform);
375- py::class_<rcs::common::RobotState>(common, " RobotState" );
376- py::class_<rcs::common::GripperConfig>(common, " GripperConfig" );
377- py::class_<rcs::common::GripperState>(common, " GripperState" );
375+ py::class_<rcs::common::RobotState>(common, " RobotState" ). def (py::init<>()) ;
376+ py::class_<rcs::common::GripperConfig>(common, " GripperConfig" ). def (py::init<>()) ;
377+ py::class_<rcs::common::GripperState>(common, " GripperState" ). def (py::init<>()) ;
378378 py::enum_<rcs::common::GraspType>(common, " GraspType" )
379379 .value (" POWER_GRASP" , rcs::common::GraspType::POWER_GRASP)
380380 .value (" PRECISION_GRASP" , rcs::common::GraspType::PRECISION_GRASP)
You can’t perform that action at this time.
0 commit comments