How do I define a service server with custom service type in MATLAB?
1 回表示 (過去 30 日間)
古いコメントを表示
I am trying to write a service along with a callback function. The service would have a response and request of type sensor_msgs/Image. However, there are no such service types in rostype.getServiceList. How can I create a custom service type that will accept the correct request and response msg types? Is this the correct approach for creating a service server in MATLAB?
Thanks!
2 件のコメント
Jagadeesh Konakalla
2021 年 6 月 10 日
Hi Abhinav,
My understanding is that you are querying for ROS 1.
If you are using the MATLAB version R2020b or later, Please refer to the following links which will be useful to know how to generate custom messages and custom services in the MATLAB.
If you are using the MATLAB R2020a or before, you need to install the following support package.
Let me know if you need additional information.
Thanks,
Jagadeesh K.
回答 (1 件)
Jagadeesh Konakalla
2021 年 6 月 11 日
Hi Abhinav,
Here are the links for R2020a MATLAB release related to custom message creation in MATLAB. As you have already installed the support package, you should be able to use the rosgenmsg function now. Please follow the following links.
Thanks,
Jagadeesh K
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Custom Message Support についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!