Program Listing for File adaptor2D.hpp

Return to documentation for file (cosm/pal/ros/controller/adaptor2D.hpp)

#pragma once

/*******************************************************************************
 * Includes
 ******************************************************************************/
#include "cosm/controller/base_controller2D.hpp"
#include "cosm/pal/ros/controller/base_adaptor.hpp"

/*******************************************************************************
 * Namespaces/Decls
 ******************************************************************************/
namespace cosm::pal::ros::controller {

/*******************************************************************************
 * Class Definitions
 ******************************************************************************/
class adaptor2D : public ccontroller::base_controller2D,
                  public cpros::controller::base_adaptor {
 public:
  void entity_id(const rtypes::type_uuid& entity_id) {
    m_entity_id = entity_id;
  }

  /* base_controller2D overrides */
  rtypes::type_uuid entity_id(void) const override {
    return m_entity_id;
  }

  /* clang-format off */
  rtypes::type_uuid m_entity_id{rtypes::type_uuid(rtypes::constants::kNoUUID)};
  /* clang-format on */
};

} /* namespace cosm::pal::ros::controller */