subscribe to a gazebo topic

5 ビュー (過去 30 日間)
Philippe Lebel
Philippe Lebel 2018 年 1 月 5 日
回答済み: Philippe Lebel 2019 年 11 月 5 日
I can see the gazebo topic using the command line option (ubuntu):
$gz topic -e /gazebo/default/physics/contacts
The problem is I cannot figure out a way to subscribe to such topic. I can easily subscribe and publish ros topics though.

採用された回答

Philippe Lebel
Philippe Lebel 2019 年 11 月 5 日
I managed to figure it out a few years ago and i forgot to post the answer here.

その他の回答 (1 件)

Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis 2018 年 1 月 8 日
Hi Philippe,
Please see this link for an example on how to interact with gazebo. If you cannot see the gazebo topics by running
rostopic list
it is possible that the network has not been set up properly.
  1 件のコメント
Philippe Lebel
Philippe Lebel 2018 年 1 月 9 日
well i can see some gazebo topics in the ros topics. I can even spawn models in gazebo from matlab. The thing is I want to get collision data from gazebo (from the following gazebo topic: gazebo/default/physics/contacts). I don't see any of the gz topics in the list I see in matlab when I use the buit-in functions from the examples.
Thank you for your help.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGazebo Co-Simulation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by