Ask Your Question
0

Getting sonar and bumper data p2os

asked 2014-03-08 01:49:36 -0600

NullX4 gravatar image

updated 2014-03-15 03:55:56 -0600

Hi, I just wanted to know if there is some example on getting sonar and bumper data from a pioneer3dx using p2os, I can't find anything. I thought it was like getting pose data but now I think it's nothing like that. Can you help me?

It seems like p2os does not offer access to bumper data, but is it possible in any way?

Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-03-11 06:06:04 -0600

ReedHedges gravatar image

p2os_driver publishes sonar data on the sonar topic. The data is a special data type p2os_driver::SonarArray whose definition you can see in p2os_driver/msg/SonarArray.msg. You may need to enable sonar via the ~use_sonar parameter.

edit flag offensive delete link more

Comments

Thank you very much, but what about the bumpers?

NullX4 gravatar imageNullX4 ( 2014-03-11 07:06:29 -0600 )edit

It doesn't look like p2os_driver provides bumper data, from what I can see.

ReedHedges gravatar imageReedHedges ( 2014-03-14 06:37:29 -0600 )edit

So what can I do to access to that data?

NullX4 gravatar imageNullX4 ( 2014-03-15 01:11:57 -0600 )edit

I went into p2os_driver/src/p2os.cc and changed false in

n_private.param("use_sonar", use_sonar_, false); to true;

however, rostopic echo /sonar still does not produce ranges. It also doesn't even sound as if the sonar sensors are running. How can I get the sonar working?

sealguy77 gravatar imagesealguy77 ( 2015-04-07 11:37:30 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-03-08 01:49:36 -0600

Seen: 280 times

Last updated: Mar 15 '14