NRP Core  1.4.1
gazebo::CameraDataPackController Class Reference

#include <camera_datapack_controller.h>

Inheritance diagram for gazebo::CameraDataPackController:
JsonDataPackController DataPackController< nlohmann::json >

Public Member Functions

 CameraDataPackController (const std::string &devName, const rendering::CameraPtr &camera, const sensors::SensorPtr &parent)
 
void handleDataPackData (const nlohmann::json &data) override
 Handle received datapack data. More...
 
nlohmann::jsongetDataPackInformation () override
 Get datapack information to be forwarded to the NRP. More...
 
void updateCamData (const unsigned char *image, unsigned int width, unsigned int height, unsigned int depth)
 
void resetTime ()
 
- Public Member Functions inherited from JsonDataPackController
const nlohmann::jsongetEmptyDataPack () const
 
- Public Member Functions inherited from DataPackController< nlohmann::json >
 DataPackController ()=default
 Constructor. More...
 
virtual ~DataPackController ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from JsonDataPackController
 JsonDataPackController (const DataPackIdentifier &datapackId)
 Constructor that should be called by the derived class. More...
 
void setCachedData (const nlohmann::json &data)
 Sets the "data" part of the cached JSON object. More...
 
nlohmann::jsongetCachedData ()
 Returns reference to the "data" part of the cached JSON object. More...
 
- Protected Attributes inherited from JsonDataPackController
DataPackIdentifier _datapackId
 
nlohmann::json _data
 Cached incoming/outgoing data in JSON format. More...
 
nlohmann::json _emptyDataPack
 

Constructor & Destructor Documentation

◆ CameraDataPackController()

gazebo::CameraDataPackController::CameraDataPackController ( const std::string &  devName,
const rendering::CameraPtr &  camera,
const sensors::SensorPtr &  parent 
)
inline

Member Function Documentation

◆ getDataPackInformation()

nlohmann::json* gazebo::CameraDataPackController::getDataPackInformation ( )
inlineoverridevirtual

Get datapack information to be forwarded to the NRP.

Returns
Returns a DATA_TYPE pointer containing requested data

Implements DataPackController< nlohmann::json >.

◆ handleDataPackData()

void gazebo::CameraDataPackController::handleDataPackData ( const nlohmann::json data)
inlineoverridevirtual

Handle received datapack data.

Parameters
dataData to be processed

Implements DataPackController< nlohmann::json >.

◆ resetTime()

void gazebo::CameraDataPackController::resetTime ( )
inline

◆ updateCamData()

void gazebo::CameraDataPackController::updateCamData ( const unsigned char *  image,
unsigned int  width,
unsigned int  height,
unsigned int  depth 
)
inline

The documentation for this class was generated from the following file: