Filter löschen
Filter löschen

rosservice type /gazebo/se​t_model_co​nfiguratio​n BUG:Input must be a structure. How to figure it out?

3 Ansichten (letzte 30 Tage)
ROS:Noetic (Virtual Machine)
Matlab:2020b
When I use :
rosservice type /gazebo/set_model_configuration
in Matlab. It has an error:
Input must be a structure.
and also, when I use :
rossvcclient('/gazebo/set_model_configuration','DataFormat','struct')
It has the same error.
I found that Gazebo_msgs are different between ROS and Matlab, that is to say, when I list msg in matlab, I have:
But when I list srv in ROS, I have:
So, I think the different msgs in two environments leads to the previous error.
Is it right? And how to deal with this problem?

Antworten (1)

Mohammadreza Yavari
Mohammadreza Yavari am 29 Apr. 2021
I get the same error running this line:
testserver = rossvcserver('/kino_plan', 'std_srvs/Empty', @kinoPlanCallback);
Input must be a structure.

Kategorien

Mehr zu Network Connection and Exploration finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by