Probems working with Gazebo Pacer and ROS Messages

2 ビュー (過去 30 日間)
Martin Rupp
Martin Rupp 2020 年 8 月 10 日
回答済み: Gaurav Bhosale 2021 年 3 月 15 日
Hello,
I am currently trying to setup a Gazebo and Simulink Co Simulation to design algorithms for robot motion control.
I have established the Gazebo Plugin connection. At least if I add the Gazebo Pacer to my Simulink model and test the connection it returns a success message. Now I am trying to subscribe and publish the specific ROS messages to get the state of the robot. When I am trying to subscribe to /joint_states and select Position via Bus Selector I get a 128 elements long array (as expected) but all are zeros. Further when I try to echo this topic either in Matlab Comand Window or in a Linux Shell on my Virtual Machine I cannot get the topic. It said in the Linux Shell that no messages are available. But when I just start the Gazebo simulation without the matlab pacer I can echo the topic successfuly in a Linux Shell. So it seems the Gazebo Pacer somehow is elated to this problem.
Can someone help me solve this problem?
Best Regards
Martin

回答 (1 件)

Gaurav Bhosale
Gaurav Bhosale 2021 年 3 月 15 日
Hi Martin,
You might need to update plugin from VM. Use packageGazeboPlugin and copy-build plugin on VM.
You can follow example to
Thanks

カテゴリ

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

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by