File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
robotis_device/src/robotis_device Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,13 @@ Robot::Robot(std::string robot_file_path, std::string dev_desc_dir_path)
154
154
uint16_t indirect_data_addr = dxl->ctrl_table_ [INDIRECT_DATA_1]->address_ ;
155
155
for (int _i = 0 ; _i < sub_tokens.size (); _i++)
156
156
{
157
+ std::map<std::string, ControlTableItem *>::iterator bulkread_it = dxl->ctrl_table_ .find (sub_tokens[_i]);
158
+ if (bulkread_it == dxl->ctrl_table_ .end ())
159
+ {
160
+ fprintf (stderr, " \n ##### BULK READ ITEM [ %s ] NOT FOUND!! #####\n\n " , sub_tokens[_i].c_str ());
161
+ continue ;
162
+ }
163
+
157
164
dxl->bulk_read_items_ .push_back (new ControlTableItem ());
158
165
ControlTableItem *dest_item = dxl->bulk_read_items_ [_i];
159
166
ControlTableItem *src_item = dxl->ctrl_table_ [sub_tokens[_i]];
You can’t perform that action at this time.
0 commit comments