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

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

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

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

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, http://www.ros.org/wiki/ROSARIA/Tutorials/How%20to%20use%20ROSARIA.

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
1

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

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

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
1

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

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 https://code.google.com/p/amor-ros-pkg/issues/detail?id=7)

edit flag offensive delete link more

Comments

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 -0600 )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 -0600 )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 -0600 )edit

Further discussion on this could be done at https://code.google.com/p/amor-ros-pkg/issues/detail?id=7 or https://groups.google.com/forum/?!forum/ros-sig-pioneer

ReedHedges gravatar image ReedHedges  ( 2013-04-30 05:10:22 -0600 )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 -0600 )edit

Question Tools

Stats

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

Seen: 1,014 times

Last updated: Apr 24 '13