sas
Modularised monitoring, logging, and control of robots.
Loading...
Searching...
No Matches
sas_robot_driver_gazebo_py.cpp File Reference

pybind11 bindings: sas_robot_driver_gazebo._sas_robot_driver_gazebo. More...

#include <pybind11/pybind11.h>
#include <pybind11/eigen.h>
#include <pybind11/stl.h>
#include <sas_robot_driver_gazebo/sas_robot_driver_gazebo.hpp>

Classes

class  RobotDriverGazebo
 Gazebo implementation of RobotDriver. More...
struct  RobotDriverGazeboConfiguration
 Configuration of RobotDriverGazebo: the joints and the Gazebo topics. More...

Functions

 PYBIND11_MODULE (_sas_robot_driver_gazebo, m)
 The Python module sas_robot_driver_gazebo._sas_robot_driver_gazebo.

Detailed Description

pybind11 bindings: sas_robot_driver_gazebo._sas_robot_driver_gazebo.

Exposes the C++ RobotDriverGazebo and its configuration to Python, as a subclass of marinholab.sas.core.RobotDriver that sas_robot_driver.RobotDriverROS accepts. The package re-exports both (sas_robot_driver_gazebo.RobotDriverGazebo, ...Configuration); they replace the former pure-Python driver, with the same constructor, methods and configuration attribute (the getters return NumPy arrays).

Function Documentation

◆ PYBIND11_MODULE()

PYBIND11_MODULE ( _sas_robot_driver_gazebo ,
m  )

The Python module sas_robot_driver_gazebo._sas_robot_driver_gazebo.

Binds RobotDriverGazeboConfiguration and RobotDriverGazebo; the getters, set_target_joint_positions and initialize release the Python interpreter lock while they run in C++.