21 #if defined(__linux__) 23 #elif defined(__APPLE__) 25 #elif defined(_WIN32) || defined(_WIN64) 28 #elif defined(ARDUINO) || defined(__OPENCR__) || defined(__OPENCM904__) 29 #include "../../include/dynamixel_sdk/group_bulk_write.h" 37 is_param_changed_(false),
54 for (
unsigned int i = 0; i <
id_list_.size(); i++)
60 for (
unsigned int i = 0; i <
id_list_.size(); i++)
88 for (
int c = 0; c < data_length; c++)
99 std::vector<uint8_t>::iterator it = std::find(
id_list_.begin(),
id_list_.end(), id);
116 std::vector<uint8_t>::iterator it = std::find(
id_list_.begin(),
id_list_.end(), id);
124 for (
int c = 0; c < data_length; c++)
135 for (
unsigned int i = 0; i <
id_list_.size(); i++)
GroupBulkWrite(PortHandler *port, PacketHandler *ph)
The function that Initializes instance for Bulk Write.
std::map< uint8_t, uint16_t > length_list_
std::vector< uint8_t > id_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 ...
int txPacket()
The function that transmits the Bulk Write instruction packet which might be constructed by GroupBulk...
void removeParam(uint8_t id)
The function that removes id from the Bulk Write list.
virtual int bulkWriteTxOnly(PortHandler *port, uint8_t *param, uint16_t param_length)=0
The function that transmits INST_BULK_WRITE instruction packet The function makes an instruction pac...
The class that inherits Protocol1PacketHandler class or Protocol2PacketHandler class.
void clearParam()
The function that clears the Bulk Write list.
The class for port control that inherits PortHandlerLinux, PortHandlerWindows, PortHandlerMac, or PortHandlerArduino.
virtual float getProtocolVersion()=0
The function that returns Protocol version.
std::map< uint8_t, uint8_t * > data_list_
#define COMM_NOT_AVAILABLE
std::map< uint8_t, uint16_t > address_list_
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.