PR2 / pr2_common

45 stars 79 forks source link

teleop_pr2 always publishes, even with --deadman_no_publish (ros ticket #2928) #152

Closed ahendrix closed 11 years ago

ahendrix commented 11 years ago

This happens in sim, with not joystick at all. The deadman_no_publish parameters is set to true, but the joystick is constantly publishing commands.

trac data:

ahendrix commented 11 years ago

[watts] How can I reproduce this over here?

ahendrix commented 11 years ago

[meeussen] run the teleop pr2 in sim with the deadman_no_publish option

ahendrix commented 11 years ago

[meeussen] otherwise, go to 2dnav_pr2, and in config/base...xml, uncomment the last block, and run the navstack.

ahendrix commented 11 years ago

[watts] Try changing the argument to:

{{{ --deadman_no_publish }}}

It looks like you need the "--" {{{ int main(int argc, char *_argv) { ros::init(argc, argv, "teleoppr2"); const char opt_no_publish = "--deadman_no_publish";

bool no_publish = false; for(int i=1;i<argc;i++) }}}

ahendrix commented 11 years ago

[watts] I fixed teleop_pr2, and it works if you use

{{{ --deadman_no_publish }}

r24864

ahendrix commented 11 years ago

[meeussen] In the launch file I only removed the "--" so I could put comment it out (otherwise you get an xml parse error). So originally it had the "--". Was there a problem with the teleop that you fixed?

ahendrix commented 11 years ago

[watts] I changed one line, but it worked on my desktop.

ahendrix commented 11 years ago

[watts] It's working right now:

{{{ ./teleop_pr2 }}} Publishes

{{{ ./teleop_pr2 --deadman_no_publish }}} doesn't.

ahendrix commented 11 years ago

[meeussen] Thanks for the very fast fix! We were able to run the door milestone yesterday!

ahendrix commented 11 years ago

[tfoote] Wim's changing name