Skip to content

Commit

Permalink
PASSIVE SONAR: make paulboard_driver a python pkg
Browse files Browse the repository at this point in the history
The scripts here were demoted from being a ros package. It should be
removed from the SubjuGator repo.
  • Loading branch information
DSsoto committed Mar 28, 2017
1 parent 1c3a53c commit 3e74544
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 118 deletions.
16 changes: 12 additions & 4 deletions drivers/mil_passive_sonar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,23 @@

This script interfaces with Jake's sonar board and provides a ROS service that returns the location and time of emission of the last heard pinger pulse.

### How to run and use
## How to run and use
To start the driver, run:

roslaunch sub8_sonar sonar.launch
rosrun mil_passive_sonar sonar.launch

*Note: In /launch/sonar.launch, make sure that port and baud are set correctly, and that the hydrophones' coordinates in the sonar frame are accurate.*
> Note: make sure that port, and baud rate, and hydrophone locations are loaded into the parameter server. See launch/test.launch for an example.
In order to ask for hydrophone information:

rosservice call /sonar/get_pinger_pulse *double_tab*

The service should respond with the x, y, z, and t of the emission of the last heard pinger pulse.
The service should respond with the x, y, and z of the last heard pinger
pulse. Remember that this should be considered the tip of an arrow
pointing in the direction of the pinger, the range is completely unreliable
and varies wildly.

## TODO
+ This package is not yet fully set up to use the paulbaurd. The interface to make this happen would be simple to implement.
+ This package should estimate the least squares solution for the actual 3d position of the pinger.
+ Visualize both individual heading veactors and the LS position estimate.
4 changes: 2 additions & 2 deletions drivers/mil_passive_sonar/launch/test.launch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<launch>
<node pkg="sub8_sonar" type="sonar_test.py" name="sonar_test" output="screen">
<node pkg="mil_passsive_sonar" type="sonar_test.py" name="sonar_test" output="screen">
<!-- units in millimeters for greater accuracy -->
<!-- current configuration -->
<!-- <rosparam param="hydrophones">
Expand All @@ -16,4 +16,4 @@
hydro3: {x: 22, y: -12.7, z: 0}}
</rosparam>
</node>
</launch>
</launch>
66 changes: 0 additions & 66 deletions drivers/mil_passive_sonar/paulboard_driver/CMakeLists.txt

This file was deleted.

19 changes: 16 additions & 3 deletions drivers/mil_passive_sonar/paulboard_driver/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
Explanation of `permute` parameter
----------------------------------
# Paulboard Driver

The scripts here are used to run the old 'Paulboard', the hydrophone board,
that MIL started using in 2013.

The driver node in this package used to interface with the old 'hydrophone'
package. Communication would occur via custom ROS msg's.

## TODO
If there is a need or want to continue using this board, as opposed to Jake
Easterling's, then the sonar_driver node in mil_passive_sonar should be,
ammended to be able to import the paulboard_driver code.

## Explanation of `permute` parameter

A `permute` value of `w x y z` means that the connector labeled Aw on the PCB
maps to hydrophone 0 as the hydrophones package wants it, Ax maps to 1, Ay
maps to 2, and Az maps to 3. See `README.md` in the hydrophones package.
maps to 2, and Az maps to 3.

File renamed without changes.
29 changes: 0 additions & 29 deletions drivers/mil_passive_sonar/paulboard_driver/package.xml

This file was deleted.

13 changes: 0 additions & 13 deletions drivers/mil_passive_sonar/paulboard_driver/setup.py

This file was deleted.

Binary file not shown.
4 changes: 3 additions & 1 deletion drivers/mil_passive_sonar/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

# fetch values from package.xml
setup_args = generate_distutils_setup(
packages=['mil_passive_sonar', 'multilateration'],
packages=['mil_passive_sonar',
'multilateration',
'paulboard_driver'],
)

setup(**setup_args)

0 comments on commit 3e74544

Please sign in to comment.