0
$\begingroup$

Gazebo Answers logo

I've started seeing issues when we bring our controller online.

The joint commands being sent are valid. Position and velocity commands are continuous with default commands (0.0); effort values are valid but discontinuous.

About 50% of the time, the robot will fall into heap and start to report NaN values for joint velocities and efforts.

I'm going to experiment with using an initialization state that will ramp the efforts a bit more slowly.

One issue that concerns me is that this does not occur if I run the controller alone. It seems to be more of an issue when the larger system is connected. This may point to a timing issue, or something deeper within Gazebo.

Have others seen this issue specifically with DRC sim, and are there suggestions for avoiding or debugging?


Originally posted by dcconner on Gazebo Answers with karma: 298 on 2013-03-28

Post score: 0


Original comments

Comment by dcconner on 2013-03-28:
Initializing and slowly ramping the joint command effort didn't help. It turns out I am getting the NaN from drcsim after connection, but before any joint commands are published. Is it possible that drcsim reads a bogus joint command if connected, but nothing published yet? (FYI: drcsim-2.2 release)

$\endgroup$

2 Answers 2

0
$\begingroup$

Gazebo Answers logo

I've seen instability that I suspect to be due to bad chopping of joint commands and possibly states over udp, so this patch was created to make sure the udp message is not fragmeneted. If possible, can you try running from the udp_tweak branch and see if problem persists?

There is a separate issue involving contact, and bad treatment of fdir1 params that leads to NaN's too, but less likely to be your problem here.


Originally posted by hsu with karma: 1873 on 2013-04-05

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$
0
$\begingroup$

Gazebo Answers logo

Make sure every value sent to Gazebo is valid.

Minor code change resulted in 1 finger joint being uninitialized. This one NaN propagated through physics and collapsed the entire robot.


Originally posted by dcconner with karma: 298 on 2013-03-28

This answer was NOT ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.