Skip to content

Commit

Permalink
pybind: applied changes for scout mini omni from pull request #59 wit…
Browse files Browse the repository at this point in the history
…h slight modification
  • Loading branch information
rdu-weston committed Oct 9, 2024
1 parent ea88b44 commit bce870a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python/ugv_sdk_py/src/scout_robot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,15 @@ void BindScoutRobot(pybind11::module &m) {
.def("get_robot_state", &ScoutRobot::GetRobotState, "Get the robot state")
.def("get_actuator_state", &ScoutRobot::GetActuatorState, "Get the actuator state")
.def("get_common_sensor_state", &ScoutRobot::GetCommonSensorState, "Get the common sensor state");

// ScoutMiniOmniRobot class
py::class_<ScoutMiniOmniRobot, ScoutRobot>(m_scout_robot, "ScoutMiniOmniRobot")
.def(py::init<ProtocolVersion>(),
py::arg("protocol") = ProtocolVersion::AGX_V2,
"Constructor for ScoutMiniOmniRobot with optional protocol")
.def("set_motion_command", &ScoutOmniInterface::SetMotionCommand,
py::arg("linear_vel"), py::arg("angular_vel"), py::arg("lateral_velocity"),
"Set the motion command for the robot");
}
// clang-format on
} // namespace westonrobot

0 comments on commit bce870a

Please sign in to comment.