![Select "Remote Device"](https://www.mathworks.com/matlabcentral/answers/uploaded_files/649985/Select%20%22Remote%20Device%22.png)
Unrecognized message type in ros simulink
조회 수: 20 (최근 30일)
이전 댓글 표시
I am having problems building and running my simulink model. I am try using a custom message in a service but when I try to buid my node it give the following error:
Top model targets built:
Model Action Rebuild Reason
========================================================================
test_service Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 15.279s
Unrecognized message type simple_test/MyTest. Use rosmsg list to see available types.
Right now I am just trying to get a toy model working so I can get my real controller working that is much more complex.
My custom message is the following called simple_test/MyTest.srv:
int64 a
int64 b
---
int64 sum
I used this to message to replace the model in ros_twoint_service_simulink_example.slx
when i run rosmsg list I get the following:
other message
simple_test/MyTestRequest
simple_test/MyTestResponse
here is a screen shot of my current workspace:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/649880/image.png)
댓글 수: 0
채택된 답변
Abhijeet Gadkari
2021년 6월 11일
Hello Nathaniel,
This looks like a bug in ROS Toolbox "Localhost" deployment workflow.
Thanks for notifying us. As a workaround, can you please deploy the code using "Remote Device" on a VM or your robot.
To deploy the code on a remote device, in Simulink toolstrip, ROS tab, select "Remote Device" option from the "Deploy to" drop-down section in CONNECT tab.
![Select "Remote Device"](https://www.mathworks.com/matlabcentral/answers/uploaded_files/649985/Select%20%22Remote%20Device%22.png)
You can use "Manage Remote Device" button to set the IP Address, user, password of your VM or remote device.
-Abhijeet
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!