Read ground truth from simulation

#1

Hi all, I am trying to use Sphinx and Bebop_autonomy for simulation. I am wondering that it is possible to read ground truth of odometry as a ros topic?

0 Likes

#2

Hi,

Telemetry data is logged via telemetryd, a process that runs in the background when sphinx gets started. You can query its data with tlm-data-logger:

tlm-data-logger inet:127.0.0.1:9060 | grep niscient_bebop2.worldPosition.x

I guess you can redirect this data into a rostopic with a piped input:

tlm-data-logger inet:127.0.0.1:9060 | awk -F"[ ',]+" '/omniscient_bebop2.worldPosition.x:/{print $2}' | rostopic pub  std_msgs/Float32
0 Likes

How to get drone status and parameters
#3

Thanks! It works as what I want!

0 Likes