class gazebo::LinkDataPackController

Overview

Interface for links. More…

#include <link_datapack_controller.h>

class LinkDataPackController: public JsonDataPackController {
public:
    // construction

    LinkDataPackController(
        const std::string& linkName,
        const physics::LinkPtr& link
    );

    // methods

    virtual void handleDataPackData(const nlohmann::json& data);
    virtual nlohmann::json* getDataPackInformation();
};

Inherited Members

public:
    // methods

    virtual DATA_TYPE* getDataPackInformation() = 0;
    virtual void handleDataPackData(const DATA_TYPE& data) = 0;
    const nlohmann::json& getEmptyDataPack() const;

Detailed Documentation

Interface for links.

Methods

Handle received datapack data.

Parameters:

data

Data to be processed

Get datapack information to be forwarded to the NRP.

Returns:

Returns a DATA_TYPE pointer containing requested data