TF2 message not in ros2 message list

Hello,
I've created ros2 bag that is composed of TF topic that publish tf2_msgs/TFMessage. However I get the following error, when loading the bag
Is there a way to have those message in matlab ?
Thanks in advance for any answer.

Réponses (1)

Jagadeesh Konakalla
Jagadeesh Konakalla le 21 Juin 2022

1 vote

Hi Megane,
You need to download the tf2_msgs from the web. Then run ros2genmsg on the downloaded message package before you read the messages from ros2bag.
Let me know if you run into any issue.
Thanks,
Jagadeesh K.

4 commentaires

Antoine Harlé
Antoine Harlé le 21 Juin 2022
Hi Jagadeesh,
Shouldn't tf2_msgs be built-in in like they are in the ROS1 side of the toolbox ? It's a working solution to compile it as a custom message but it seems weird as it's already built-in other ROS envrionnements.
Cheers,
Antoine H.
Jagadeesh Konakalla
Jagadeesh Konakalla le 21 Juin 2022
Hi Antonie,
We are working on this request. In the future releases of MATLAB, tf2_msgs will be part of ROS toolbox for ROS2 also.
Thanks,
Jagadeesh K
星 曹
星 曹 le 18 Août 2022
download link here:https://github.com/ros2/geometry2/tree/ros2
J
J le 29 Avr 2024
Modifié(e) : J le 29 Avr 2024
issue when running w python 3.9.18 (matlab 2022b), appearently that is not accepted to fit the requested python 3.9.X version.

Connectez-vous pour commenter.

Catégories

Produits

Version

R2022a

Modifié(e) :

J
J
le 29 Avr 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by