I managed to figure it out a few years ago and i forgot to post the answer here.
subscribe to a gazebo topic
5 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
更多回答(1 个)
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Gazebo Co-Simulation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!