Class GazeboRosOpticalMouse
Defined in File gazebo_ros_optical_mouse.hpp
Inheritance Relationships
Base Type
public gazebo::ModelPlugin
Class Documentation
-
class GazeboRosOpticalMouse : public gazebo::ModelPlugin
Plugin to control odometry based on the optical mouse sensor.
ROS Publishers
/mouse: Odometry data.
Public Functions
-
GazeboRosOpticalMouse()
Constructor.
-
virtual ~GazeboRosOpticalMouse()
Destructor.
-
void Load(gazebo::physics::ModelPtr model, sdf::ElementPtr sdf) override
Gazebo calls this when the plugin is loaded.
- Parameters:
model – [in] Pointer to parent model. Other plugin types will expose different entities, such as
gazebo::sensors::SensorPtr,gazebo::physics::WorldPtr,gazebo::rendering::VisualPtr, etc.sdf – [in] SDF element containing user-defined parameters.
-
void Reset() override
Function is called when the world is reset.
Protected Functions
-
void OnUpdate(const gazebo::common::UpdateInfo &info)
Optional callback to be called at every simulation iteration.