The class for writing multiple Dynamixel data from different addresses with different lengths at once. More...
#include <group_bulk_write.h>
Public Member Functions | |
| bool | addParam (uint8_t id, uint16_t start_address, uint16_t data_length, uint8_t *data) |
| The function that adds id, start_address, data_length to the Bulk Write list. | |
| bool | changeParam (uint8_t id, uint16_t start_address, uint16_t data_length, uint8_t *data) |
| The function that changes the data for write in id -> start_address -> data_length to the Bulk Write list. | |
| void | clearParam () |
| The function that clears the Bulk Write list. | |
| PacketHandler * | getPacketHandler () |
| The function that returns PacketHandler instance. | |
| PortHandler * | getPortHandler () |
| The function that returns PortHandler instance. | |
| GroupBulkWrite (PortHandler *port, PacketHandler *ph) | |
| The function that Initializes instance for Bulk Write. | |
| void | removeParam (uint8_t id) |
| The function that removes id from the Bulk Write list. | |
| int | txPacket () |
| The function that transmits the Bulk Write instruction packet which might be constructed by GroupBulkWrite::addParam function. | |
| ~GroupBulkWrite () | |
| The function that calls clearParam function to clear the parameter list for Bulk Write. | |
Private Member Functions | |
| void | makeParam () |
Private Attributes | |
| std::map< uint8_t, uint16_t > | address_list_ |
| std::map< uint8_t, uint8_t * > | data_list_ |
| std::vector< uint8_t > | id_list_ |
| bool | is_param_changed_ |
| std::map< uint8_t, uint16_t > | length_list_ |
| uint8_t * | param_ |
| uint16_t | param_length_ |
| PacketHandler * | ph_ |
| PortHandler * | port_ |
The class for writing multiple Dynamixel data from different addresses with different lengths at once.
Definition at line 37 of file group_bulk_write.h.
| GroupBulkWrite::GroupBulkWrite | ( | PortHandler * | port, |
| PacketHandler * | ph | ||
| ) |
The function that Initializes instance for Bulk Write.
| port | PortHandler instance |
| ph | PacketHandler instance |
Definition at line 34 of file group_bulk_write.cpp.
| dynamixel::GroupBulkWrite::~GroupBulkWrite | ( | ) | [inline] |
The function that calls clearParam function to clear the parameter list for Bulk Write.
Definition at line 66 of file group_bulk_write.h.
| bool GroupBulkWrite::addParam | ( | uint8_t | id, |
| uint16_t | start_address, | ||
| uint16_t | data_length, | ||
| uint8_t * | data | ||
| ) |
The function that adds id, start_address, data_length to the Bulk Write list.
| id | Dynamixel ID |
| start_address | Address of the data for write |
| data_length | Length of the data for write |
Definition at line 76 of file group_bulk_write.cpp.
| bool GroupBulkWrite::changeParam | ( | uint8_t | id, |
| uint16_t | start_address, | ||
| uint16_t | data_length, | ||
| uint8_t * | data | ||
| ) |
The function that changes the data for write in id -> start_address -> data_length to the Bulk Write list.
| id | Dynamixel ID |
| start_address | Address of the data for write |
| data_length | Length of the data for write |
| data | for replacement |
Definition at line 111 of file group_bulk_write.cpp.
| void GroupBulkWrite::clearParam | ( | ) |
The function that clears the Bulk Write list.
Definition at line 130 of file group_bulk_write.cpp.
| PacketHandler* dynamixel::GroupBulkWrite::getPacketHandler | ( | ) | [inline] |
The function that returns PacketHandler instance.
Definition at line 78 of file group_bulk_write.h.
| PortHandler* dynamixel::GroupBulkWrite::getPortHandler | ( | ) | [inline] |
The function that returns PortHandler instance.
Definition at line 72 of file group_bulk_write.h.
| void GroupBulkWrite::makeParam | ( | ) | [private] |
Definition at line 44 of file group_bulk_write.cpp.
| void GroupBulkWrite::removeParam | ( | uint8_t | id | ) |
The function that removes id from the Bulk Write list.
| id | Dynamixel ID |
Definition at line 94 of file group_bulk_write.cpp.
| int GroupBulkWrite::txPacket | ( | ) |
The function that transmits the Bulk Write instruction packet which might be constructed by GroupBulkWrite::addParam function.
Definition at line 146 of file group_bulk_write.cpp.
std::map<uint8_t, uint16_t> dynamixel::GroupBulkWrite::address_list_ [private] |
Definition at line 44 of file group_bulk_write.h.
std::map<uint8_t, uint8_t *> dynamixel::GroupBulkWrite::data_list_ [private] |
Definition at line 46 of file group_bulk_write.h.
std::vector<uint8_t> dynamixel::GroupBulkWrite::id_list_ [private] |
Definition at line 43 of file group_bulk_write.h.
bool dynamixel::GroupBulkWrite::is_param_changed_ [private] |
Definition at line 48 of file group_bulk_write.h.
std::map<uint8_t, uint16_t> dynamixel::GroupBulkWrite::length_list_ [private] |
Definition at line 45 of file group_bulk_write.h.
uint8_t* dynamixel::GroupBulkWrite::param_ [private] |
Definition at line 50 of file group_bulk_write.h.
uint16_t dynamixel::GroupBulkWrite::param_length_ [private] |
Definition at line 51 of file group_bulk_write.h.
PacketHandler* dynamixel::GroupBulkWrite::ph_ [private] |
Definition at line 41 of file group_bulk_write.h.
PortHandler* dynamixel::GroupBulkWrite::port_ [private] |
Definition at line 40 of file group_bulk_write.h.