class gazebo::JointDataPackController

Overview

Interface for a single joint. More…

#include <joint_datapack_controller.h>

class JointDataPackController: public JsonDataPackController {
public:
    // construction

    JointDataPackController(
        const physics::JointPtr& joint,
        const physics::JointControllerPtr& jointController,
        const std::string& jointName
    );

    // 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 a single joint.

Methods

virtual void handleDataPackData(const nlohmann::json& data)

Handle received datapack data.

Parameters:

data

Data to be processed

virtual nlohmann::json* getDataPackInformation()

Get datapack information to be forwarded to the NRP.

Returns:

Returns a DATA_TYPE pointer containing requested data