ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

How to turn off Pioneer 3dx rear sonars using ROSARIA?

asked 2013-04-11 23:48:38 -0500

updated 2013-04-14 20:12:21 -0500

I have a Pioneer 3dx mobile robot, which has eight front sonars installed. It is also possible to have eight additional sonars at the rear of the robot, but I don't have these. However, when subscribing to the ROSARIA sonar topic, a distance is published for sixteen sonars, eight of them continuously reporting a distance of 0.

Of course, this is unwanted behavior. I could not find an appropriate parameter on the ROSARIA tutorial page,

What is the correct way to receive only distances on the sonar topic for sonars actually installed?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-04-15 01:07:54 -0500

updated 2013-04-15 01:08:43 -0500

I have found that ROSARIA uses the parameters from the file p3dx-sh.p at /usr/local/Aria/params. I changed the SonarNum on line 49 to 8 and the issue was resolved.

Looking back, it seems like a trivial question. However, I didn't find anything quickly, so I'll leave the solution here in case anyone would ever need it.

edit flag offensive delete link more

answered 2013-04-24 10:42:38 -0500

ReedHedges gravatar image

This is something we can maybe fix in ROSARIA in a future version, I don't know when though. (bug report is at

edit flag offensive delete link more


I believe a dynamic parameter server would be a nice feature, e.g. disable/enable some sonars during operation. The question is whether the default ARIA library would support dynamic parameter changes.

RafBerkvens gravatar image RafBerkvens  ( 2013-04-26 01:30:53 -0500 )edit

It's easy to turn off/on all sonars. You can also effectively disable a specific sonar transducer (and change polling frequency and order) bit this would be more complicated, would you need that too? This would be in addition to omitting data for nonexistant sonars from the 'sonar' topic.

ReedHedges gravatar image ReedHedges  ( 2013-04-30 05:05:46 -0500 )edit

I just checked and ROSARIA ought to be disabling all the sonars on the robot if there are no subscribers to the 'sonar' topic. This is mainly just to keep it quiet if the sonars aren't actually in use.

ReedHedges gravatar image ReedHedges  ( 2013-04-30 05:09:41 -0500 )edit

Further discussion on this could be done at or!forum/ros-sig-pioneer

ReedHedges gravatar image ReedHedges  ( 2013-04-30 05:10:22 -0500 )edit

I've put my comments on the amor-ros-pkg google code site. The ros-sig-pioneer forum seems inaccessible (wrong link?)

RafBerkvens gravatar image RafBerkvens  ( 2013-05-01 20:07:20 -0500 )edit

Question Tools


Asked: 2013-04-11 23:48:38 -0500

Seen: 990 times

Last updated: Apr 24 '13