Class GazeboRosElevator

Inheritance Relationships

Base Type

  • public gazebo::ElevatorPlugin

Class Documentation

class GazeboRosElevator : public gazebo::ElevatorPlugin

A elevator plugin for gazebo.

Example Usage:

<!-- Plugin to control the elevator -->
<plugin name="elevator" filename="libgazebo_ros_elevator.so">
  <ros>
    <namespace>demo</namespace>

    <!-- topic remapping -->
    <remapping>elevator:=elevator_demo</remapping>
  </ros>

  <!-- min and max floor constraints -->
  <bottom_floor>0</bottom_floor>
  <top_floor>1</top_floor>

Public Functions

GazeboRosElevator()

Constructor.

~GazeboRosElevator()

Destructor.

Protected Functions

void OnElevator(const std_msgs::msg::String::ConstSharedPtr msg)

Callback for receiving message on elevator’s topic.

Parameters:

msg[in] String message that contains a elevator command.

void Load(gazebo::physics::ModelPtr _model, sdf::ElementPtr _sdf) override