how to access tflite_data published by voxl_mpa_to_ros from local machine?
-
Hello!
I'm trying to subscribe to/tflite_data
publsihed byvoxl_mpa_to_ros
node on my local machine by usingrostopic echo /tflite_data
but I keep getting the following errorERROR: Cannot load message class for [voxl_mpa_to_ros/AiDetection]. Are your messages built?
I think this is happening because it's a custom message type that my computer doesn't know about, which means the message definition of
AiDetection
should be integrated somewhere, but I'm not sure what to do.
The following is a screenshot showing thevoxl_mpa_to_ros
node running onvoxl
, and trying to echo the published topic from arosmelodic
docker container, installed onboard on the drone, which shows the same error message that I receive when I try to do that from my local machine as well. Please assist.
Thanks in advance for your help! -
@aashry If anyone has any insights or suggestions on how to solve this, please do share. Your help would be much appreciated.
-
@tom can you help me with that, or do you know someone who can help? Thank you so much in advance!
-
@aashry What hardware are you using and what software version are you using?:
voxl-version
-
@aashry Follow this link: https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-to-ros. Catkin_ws -> src -> msg and you will find AiDetection.msg, which you can use to build a ros custom message package (ROS has a tutorial on it I believe). You can do that in whatever workspace you are working in in your docker container. Once that is built and you source devel/setup.bash, you should be able to echo the topic and if you want to subscribe to it in a node you will need to import the message header similarly to any other message type
-
@tom sorry for the late reply, I've been distant from work for one week. I'm using m500 drone with the voxl flight deck. Below is the
voxl-version
output as you requested. I will probably try to follow what @jonathankampia mentioned and see if it works. I will update the thread here accordingly. Thank you guys for your help, appreciate it.-------------------------------------------------------------------------------- system-image: 4.0.0 kernel: #1 SMP PREEMPT Thu Oct 13 17:57:05 UTC 2022 3.18.71-perf -------------------------------------------------------------------------------- hw version: VOXL -------------------------------------------------------------------------------- voxl-suite: 0.9.4 -------------------------------------------------------------------------------- Packages: Repo: http://voxl-packages.modalai.com/dists/apq8096/sdk-0.9/binary-arm64/ Last Updated: 1970-01-01 00:05:23 List: apq8096-dfs-server 0.3.1 apq8096-imu-server 1.0.3 apq8096-libpng 1.6.38-1 apq8096-system-tweaks 0.1.3 apq8096-tflite 2.8.3-1 libapq8096-io 0.6.0 libmodal-cv 0.2.3 libmodal-exposure 0.0.7 libmodal-journal 0.2.1 libmodal-json 0.4.3 libmodal-pipe 2.6.0 libvoxl-cci-direct 0.1.5 libvoxl-cutils 0.1.1 voxl-camera-calibration 0.2.3 voxl-camera-server 1.3.5 voxl-cpu-monitor 0.3.0 voxl-docker-support 1.2.4 voxl-gphoto2-server 0.0.10 voxl-jpeg-turbo 2.1.3-4 voxl-libgphoto2 0.0.4 voxl-libuvc 1.0.7 voxl-logger 0.3.4 voxl-mavlink 0.1.0 voxl-mavlink-server 0.2.0 voxl-modem 0.16.1 voxl-mongoose 7.7.0-1 voxl-mpa-to-ros 0.3.6 voxl-mpa-tools 0.7.6 voxl-opencv 4.5.5-1 voxl-portal 0.4.2 voxl-qvio-server 0.8.2 voxl-streamer 0.4.1 voxl-suite 0.9.4 voxl-system-image 4.0-r0 voxl-tag-detector 0.0.4 voxl-tflite-server 0.3.1 voxl-utils 1.2.2 voxl-uvc-server 0.1.3 voxl-vision-px4 1.4.0 voxl-vpn 0.0.6 --------------------------------------------------------------------------------