displaying a vehicle on map in neptus

68 views
Skip to first unread message

Remus Barbatei

unread,
Jun 19, 2014, 1:33:56 PM6/19/14
to lsts-to...@googlegroups.com

Hi all

I want to do something that is fairly simple but I need some guidance. I'm new to neptus development.

I am building a sensor node which currently has a GPS module and a temperature sensor.
- This node communicates with DUNE sending it's location and temperature
- DUNE forwards IMC messages with the GPS  fix and temperature to NEPTUS

What I want is to have that sensor node show up in neptus (at its real location given by the gps) identified as a already existing vehicle (let's say x8-01) (maybe creating a new vehicle for that involves a lot of extra development?)

To my knowledge I can do this in 2 ways (correct me if I am wrong)

a) having a dedicated plugin that handles those kind of imc messages and displaying the info on the map

My specific questions are: Are there any plugins that already handle this or something similar?

if yes, how are these called?
Are there any polling functions of IMC messages in neptus? I assume there are, can you help me by maybe pointing out where I can find these being used? 

I followed the neptus tutorials on youtube  and using some other example code I have some basic working plugins that can handle mouse actions and creating dots (at a specific screen location). Something like this: https://i.imgur.com/nBjcEWi.png

b) making neptus think that the sensor node is an acutal uav and tracking it realtime using the uav console

This option is also fine for me, I just want my sensor to show up somehow in neputs.
 
Currently the uav console looks something like this: https://i.imgur.com/jO4fCMR.png
 
I have the sensor node identified as x8-01 and imc messages are showing up but something is missing. (what?)
 
Can any one of you point out what kind of other messages I should send from dune so that neptus would track the sensor node as one uav.
This would mean making the status showing as ACTIVE, not DISCONNECTED and presumably other stuff.


In the end I want a proof of concept communication between the sensor node and neptus. 
The easiest way of having the sensor node show up in neptus would be fine with me, nothing really fancy.

In case it helps here is the shell output for the dune task: http://codepad.org/T3NR7ycd
and here is the configuration file for that dune task: http://codepad.org/WbC7Wq17

Thank you in advance for the help

Remus



 

José Pinto

unread,
Jun 23, 2014, 9:58:43 AM6/23/14
to lsts-to...@googlegroups.com
Hi Remus,

Please see attached an example for painting incoming GpsFix messages in the console map (first way). It is a ConsoleLayer plug-in and should be added to the console using "View->Plugin Manager".

Meanwhile Paulo Dias is drafting an answer for the second way -- How to synthesize a vehicle's position.

Hope this helps,
José
GpsFixLayer.java
Message has been deleted
Message has been deleted

Paulo Dias

unread,
Jun 23, 2014, 10:41:23 AM6/23/14
to lsts-to...@googlegroups.com


---------- Forwarded message ----------
Date: 2014-06-23 15:08 GMT+01:00


Hi Remus,

  From what you are describing you want to display sensor data. For that you should use one of the addressing groups for sensors. See https://github.com/LSTS/imc/blob/master/IMC_Addressing_Scheme.txt. Use for instance 0x91XX range. In the announce message, give it a name and make it a mobilesensor as type, set the lat, lon with the correct data (this is done for you if you produce an EstimatedState in DUNE) and the system is known to Neptus. For the updated position send an EstimatedState with the values from GpsFix. All this in DUNE.
  To set in the announce the system type as mobilesensor put in the [Transports.Announce] section the "System Type" as MOBILESENSOR.
  For Neptus the position for a system is get from either EstimatedState or Annonce messages. The status showing as ACTIVE, or DISCONNECTED is for vehicles. There is no point for sensors because you cannot send a plan to it.

 Regarding the a) question you can see an example attached. You can also use it to paint the temperature (if you use what I said on earlier the system is drawn for you in the renderer.

  Does this responds you questions?

Regards,
Paulo

GpsFixLayer.java

Remus Barbatei

unread,
Jun 26, 2014, 7:12:21 PM6/26/14
to lsts-to...@googlegroups.com
So, I managed to have what I needed. I used the instructions described by Paulo and It worked!
I used an already existing mobilesensor vehicle in neptus and dune (ais-1), I did not want to go through the trouble of adding a new one.
I even had field tests and here is a screen capture of neptus showing the sensor node in the water: https://i.imgur.com/eNMqA51.png

I will possibly also try out the first option, it might be interesting to have and compare both implementation options.

Thank you again for all your help!

This question can be marked as [SOLVED]
Reply all
Reply to author
Forward
0 new messages