Go to the documentation of this file.
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++)
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.
std::map< uint8_t, uint16_t > length_list_
std::vector< uint8_t > id_list_
virtual int bulkWriteTxOnly(PortHandler *port, uint8_t *param, uint16_t param_length)=0
The function that transmits INST_BULK_WRITE instruction packet @description The function makes an ins...
The class for port control that inherits PortHandlerLinux, PortHandlerWindows, PortHandlerMac,...
#define COMM_NOT_AVAILABLE
int txPacket()
The function that transmits the Bulk Write instruction packet which might be constructed by GroupBulk...
virtual float getProtocolVersion()=0
The function that returns Protocol version.
void clearParam()
The function that clears 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 ...
void removeParam(uint8_t id)
The function that removes id from the Bulk Write list.
std::map< uint8_t, uint16_t > address_list_
std::map< uint8_t, uint8_t * > data_list_
The class that inherits Protocol1PacketHandler class or Protocol2PacketHandler class.
GroupBulkWrite(PortHandler *port, PacketHandler *ph)
The function that Initializes instance for Bulk Write.
dynamixel_sdk
Author(s): Gilbert
, Zerom , Darby Lim , Leon
autogenerated on Wed Mar 2 2022 00:13:50