rosservice type /gazebo/set_model_configuration BUG:Input must be a structure. How to figure it out?
조회 수: 3 (최근 30일)
이전 댓글 표시
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/567049/image.jpeg)
But when I list srv in ROS, I have:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/567054/image.jpeg)
So, I think the different msgs in two environments leads to the previous error.
Is it right? And how to deal with this problem?
댓글 수: 0
답변 (1개)
Mohammadreza Yavari
2021년 4월 29일
I get the same error running this line:
testserver = rossvcserver('/kino_plan', 'std_srvs/Empty', @kinoPlanCallback);
Input must be a structure.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Network Connection and Exploration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!