Skip to content

Commit bf0452f

Browse files
committed
fix: Enhance warning messages in Dynamixel model file handling to include file path
1 parent 4392276 commit bf0452f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/dynamixel/dynamixel_info.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,14 @@ void DynamixelInfo::ReadDxlModelFile(uint8_t id, uint16_t model_num)
117117
// Set default values and warn if parameters are missing
118118
if (!torque_constant_set) {
119119
fprintf(
120-
stderr, "[WARN] Model file doesn't contain torque_constant parameter. "
121-
"Using default value: 1.0\n");
120+
stderr, "[WARN] Model file '%s' doesn't contain torque_constant parameter. "
121+
"Using default value: 1.0\n", path.c_str());
122122
temp_dxl_info.torque_constant = 1.0;
123123
}
124124
if (!velocity_unit_set) {
125125
fprintf(
126-
stderr, "[WARN] Model file doesn't contain velocity_unit parameter. "
127-
"Using default value: 0.01\n");
126+
stderr, "[WARN] Model file '%s' doesn't contain velocity_unit parameter. "
127+
"Using default value: 0.01\n", path.c_str());
128128
temp_dxl_info.velocity_unit = 0.01;
129129
}
130130

0 commit comments

Comments
 (0)