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_sync_write.h" 37 is_param_changed_(false),
39 start_address_(start_address),
40 data_length_(data_length)
56 for (
unsigned int i = 0; i <
id_list_.size(); i++)
84 std::vector<uint8_t>::iterator it = std::find(
id_list_.begin(),
id_list_.end(), id);
97 std::vector<uint8_t>::iterator it = std::find(
id_list_.begin(),
id_list_.end(), id);
115 for (
unsigned int i = 0; i <
id_list_.size(); i++)
void clearParam()
The function that clears the Sync Write list.
virtual int syncWriteTxOnly(PortHandler *port, uint16_t start_address, uint16_t data_length, uint8_t *param, uint16_t param_length)=0
The function that transmits INST_SYNC_WRITE instruction packet The function makes an instruction pac...
bool addParam(uint8_t id, uint8_t *data)
The function that adds id, start_address, data_length to the Sync Write list.
std::map< uint8_t, uint8_t * > data_list_
The class that inherits Protocol1PacketHandler class or Protocol2PacketHandler class.
The class for port control that inherits PortHandlerLinux, PortHandlerWindows, PortHandlerMac, or PortHandlerArduino.
void removeParam(uint8_t id)
The function that removes id from the Sync Write list.
bool changeParam(uint8_t id, uint8_t *data)
The function that changes the data for write in id -> start_address -> data_length to the Sync Write ...
GroupSyncWrite(PortHandler *port, PacketHandler *ph, uint16_t start_address, uint16_t data_length)
The function that Initializes instance for Sync Write.
#define COMM_NOT_AVAILABLE
int txPacket()
The function that transmits the Sync Write instruction packet which might be constructed by GroupSync...
std::vector< uint8_t > id_list_