Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions extensions/rcs_fr3/src/pybind/rcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ PYBIND11_MODULE(_core, m) {
.def_readwrite("world_to_robot", &rcs::hw::FrankaConfig::world_to_robot)
.def_readwrite("async_control", &rcs::hw::FrankaConfig::async_control);

py::class_<rcs::hw::FR3Config, rcs::hw::FrankaConfig>(hw, "FR3Config");
py::class_<rcs::hw::PandaConfig, rcs::hw::FrankaConfig>(hw, "PandaConfig");
py::class_<rcs::hw::FR3Config, rcs::hw::FrankaConfig>(hw, "FR3Config")
.def(py::init<>());
py::class_<rcs::hw::PandaConfig, rcs::hw::FrankaConfig>(hw, "PandaConfig")
.def(py::init<>());

py::object gripper_config =
(py::object)py::module_::import("rcs").attr("common").attr(
Expand Down
4 changes: 2 additions & 2 deletions extensions/rcs_fr3/src/rcs_fr3/_core/hw/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ class IKSolver:
def value(self) -> int: ...

class FR3Config(FrankaConfig):
pass
def __init__(self) -> None: ...

class PandaConfig(FrankaConfig):
pass
def __init__(self) -> None: ...

franka_ik: IKSolver # value = <IKSolver.franka_ik: 0>
rcs_ik: IKSolver # value = <IKSolver.rcs_ik: 1>
1 change: 1 addition & 0 deletions extensions/rcs_fr3/src/rcs_fr3/creators.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def __call__( # type: ignore

class RCSFR3MultiEnvCreator(RCSHardwareEnvCreator):
def __call__( # type: ignore
self,
name2ip: dict[str, str],
control_mode: ControlMode,
robot_cfg: hw.FR3Config,
Expand Down
4 changes: 2 additions & 2 deletions extensions/rcs_panda/src/rcs_panda/_core/hw/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ class IKSolver:
def value(self) -> int: ...

class FR3Config(FrankaConfig):
pass
def __init__(self) -> None: ...

class PandaConfig(FrankaConfig):
pass
def __init__(self) -> None: ...

franka_ik: IKSolver # value = <IKSolver.franka_ik: 0>
rcs_ik: IKSolver # value = <IKSolver.rcs_ik: 1>