Why do I get the error message 'Could not retrieve the system state of the ROS master' when I try to set up ROS Subscribers in MATLAB R2022a?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
MathWorks Support Team
il 4 Apr 2023
Risposto: MathWorks Support Team
il 6 Apr 2023
I'm using the ROS Toolbox to connect MATLAB R2022a with Gazebo. I'm able to initialize my connection to the ROS master without any error. However, I encounter getting the following error message when I try to set up ROS Subscribers:
'Could not retrieve the system state of the ROS master'
How can I resolve this error?
Risposta accettata
MathWorks Support Team
il 4 Apr 2023
This error appears because you are trying to subscribe to a topic that the ROS master does not have. Execute the following command in the terminal or command line to see the full list of ROS topics from the ROS master:
rostopic list
If you do not see the topic listed that you are trying to use in the "rossubscriber" function, then please ensure you are using the correct TurtleBot in your Gazebo simulation. For example, if you are trying to subscribe to a topic related to a Raspberry Pi camera, you'll need to ensure that you're using TurtleBot3 Waffle Pi and not TurtleBot3 Burger.
Please refer to the TurtleBot user manual for more information:
0 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!