@@ -134,10 +134,10 @@ urcl::UrDriver::UrDriver(const std::string& robot_ip, const std::string& script_
134
134
if (force_mode_damping < 0 || force_mode_damping > 1 )
135
135
{
136
136
std::stringstream ss;
137
- ss << " Force mode damping, should be between 0 and 1, but it is " << force_mode_damping
138
- << " setting it to default 0.5" ;
139
- URCL_LOG_ERROR (ss.str ().c_str ());
137
+ ss << " Force mode damping, should be between 0 and 1, but it is " << force_mode_damping;
140
138
force_mode_damping = 0.025 ;
139
+ ss << " setting it to default " << force_mode_damping;
140
+ URCL_LOG_ERROR (ss.str ().c_str ());
141
141
}
142
142
prog.replace (prog.find (FORCE_MODE_SET_DAMPING_REPLACE), FORCE_MODE_SET_DAMPING_REPLACE.length (),
143
143
std::to_string (force_mode_damping));
@@ -158,10 +158,10 @@ urcl::UrDriver::UrDriver(const std::string& robot_ip, const std::string& script_
158
158
if (force_mode_gain_scaling < 0 || force_mode_gain_scaling > 2 )
159
159
{
160
160
std::stringstream ss;
161
- ss << " Force mode gain scaling, should be between 0 and 2, but it is " << force_mode_gain_scaling
162
- << " setting it to default 0.5" ;
163
- URCL_LOG_ERROR (ss.str ().c_str ());
161
+ ss << " Force mode gain scaling, should be between 0 and 2, but it is " << force_mode_gain_scaling;
164
162
force_mode_gain_scaling = 0.5 ;
163
+ ss << " setting it to default " << force_mode_gain_scaling;
164
+ URCL_LOG_ERROR (ss.str ().c_str ());
165
165
}
166
166
prog.replace (prog.find (FORCE_MODE_SET_GAIN_SCALING_REPLACE), FORCE_MODE_SET_GAIN_SCALING_REPLACE.length (),
167
167
std::to_string (force_mode_gain_scaling));
0 commit comments