Gazebo | Ignition | Community
Ask Your Question
1

DRCsim 2.0 problem with effort control and /joint_commands topic

asked 2013-02-05 15:41:04 -0500

EricSidorov gravatar image

Hello, I updated to drcsim 2.0 and i'm having problems controlling the joint effort. as suggested in the user guide I send a message to /atlas/joint_commands with the desires efforts, and PID gains set to 0, the torques I'm getting look nothing like the command I give, first the amplitude never seem to rise above 0.5 Nm (, second there seems to be a huge delay (a second or so) between reference and output signal, could someone please elaborate on how the effort control is modeled in DRCsim? are there any controller dynamics I'm not aware of? In the previous versions it seemed as if commanded effort would go directly to torques in gazebo

another problem I'm having is plotting the commanded effort with rxplot. in order to compare the command to the output I want to plot them side by side. whenever I try plotting the command($rxplot /atlas/jointcommands/effort[17]) the plot appears but only the 1st value appears, after that the time axis start getting negative values (?!) and the plotting area stays clear, to work around this issue I send the same message to command topic and to /testtopic, plotting /test_topic seems to work just fine, any idea why rxplot is having problems with that particular topic?

thanks in advance.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2013-02-06 11:36:47 -0500

hsu gravatar image

The force in the JointCommands message is applied correctly, it's the effort returned by /atlas/joint_states that's faulty. It's using Joint::GetForce, which is returning incorrect values, I've ticketed this issue here. But a better fix for now is to assign it with effort that is to be applied in the same timestep.

edit flag offensive delete link more
1

answered 2013-02-06 09:21:43 -0500

EricSidorov gravatar image

UPDATE: found the cause for the second problem, apparently the messages were sent with no time stamp so rxplot couldn't plot them, so now I set the time stamp of the joint_commands message manually before sending and it works fine (I thought it was done automatically by the publisher)

the first problem still stands though.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-02-05 15:41:04 -0500

Seen: 584 times

Last updated: Feb 06 '13