45   , m_method_index(method_index)
    47   m_writer_ptr = std::make_shared<sick::data_processing::ReadWriteHelper>();
    52   uint16_t prevSize = telegram.size();
    53   telegram.resize(prevSize + 2);
    54   uint8_t* data_ptr = telegram.data() + prevSize;
    68     ROS_INFO(
"Command Method Acknowledged.");
    73     ROS_WARN(
"Command Method Not Accepted.");
 void addTelegramData(sick::datastructure::PacketBuffer::VectorBuffer &telegram) const 
Adds the data to the telegram. 
 
uint8_t getCommandType() const 
Returns the command type. 
 
Base class for commands. Defines the base interface and does the common tasks. 
 
uint16_t getMethodIndex() const 
 
void setMethodIndex(const uint16_t &method_index)
 
MethodCommand(Cola2Session &session, const uint16_t &method_index)
Constructor of the method command. 
 
uint8_t getCommandMode() const 
Returns the command mode. 
 
bool processReply()
Processes the return from the sensor. 
 
std::vector< uint8_t > VectorBuffer
Typedef for a vector buffer, to sort the incoming packets. 
 
bool canBeExecutedWithoutSessionID() const 
Returns if the command can be executed without a session ID. Will return false for most commands exce...
 
Establishes a cola2 session with a sensor and enables execution of commands in this session...
 
std::shared_ptr< sick::data_processing::ReadWriteHelper > m_writer_ptr