Creates to ROS topics to listen to the incoming messages.
More...
#include <AbstractController.hpp>
|
bool | response_available |
| This should be set by the parser if a message had feedback to send back.
|
|
std::vector< VirtualServo > | servos |
| The joint in a vector of servos, this should be initialized in the derived class.
|
|
urdf::Model | model |
| Init in the constructor with the robor parameters loaded from the ROS param server.
|
|
std::string | response |
| The feedback message to send back, should be set by the derived class.
|
|
Creates to ROS topics to listen to the incoming messages.
HLR::Simulation::AbstractController::AbstractController |
( |
const std::string & |
request_topic, |
|
|
const std::string & |
respond_topic, |
|
|
const std::string & |
robot_description |
|
) |
| |
|
protected |
Constructor for AbstractController.
- Parameters
-
request_topic | Name of the request topic in ROS |
respond_topic | Name of the response topic in ROS |
robot_description | Name of the robot |
virtual bool HLR::Simulation::AbstractController::arm_is_moving |
( |
| ) |
|
|
protectedvirtual |
Can be used to checks of any of the servos are moving Can be used to checks of any of the servos are moving.
- Returns
- true True if none of the servos are moving
-
false False if any of the servos are moving
virtual void HLR::Simulation::AbstractController::parse_message |
( |
const std::string & |
message | ) |
|
|
protectedpure virtual |
This function parses the message.
- Parameters
-
message | Incoming message to parse |
The documentation for this class was generated from the following file: