File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -191,14 +191,14 @@ bool parseJointLimits(JointLimits &jl, tinyxml2::XMLElement* config)
191191 // Get joint deceleration limit
192192 const char * deceleration_str = config->Attribute (" deceleration" );
193193 if (deceleration_str == NULL ){
194- CONSOLE_BRIDGE_logDebug (" urdfdom.joint_limit: no deceleration, using default value " );
195- jl.deceleration = std::numeric_limits< double >:: infinity () ;
194+ CONSOLE_BRIDGE_logDebug (" urdfdom.joint_limit: no deceleration, using acceleration limit " );
195+ jl.deceleration = jl. acceleration ;
196196 }
197197 else
198198 {
199199 try {
200200 jl.deceleration = strToDouble (deceleration_str);
201- if (jl.deceleration < 0.0 )
201+ if (jl.deceleration < 0.0 )
202202 {
203203 CONSOLE_BRIDGE_logError (" deceleration value (%s) is negative" , deceleration_str);
204204 return false ;
You can’t perform that action at this time.
0 commit comments