ROS Publish Msg - DJI ROS OSDK
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi there,
I am trying to publish a message to a ROS topic. The topic is one of the ROS topics available in the DJI drone ROS OSDK. Please see image 1 below. I'd like to publish roll angle, pitch angle, yaw rate and z position commands to the corresponding ROS topic. I'm using a Bus create at the input of the Publish block. However, I get the error shown in the next images. Could you please advise how I may resolve this?
Thank you.
Ben
![Publish.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/223493/Publish.png)
![Error.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/223494/Error.png)
![BusEditor.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/223495/BusEditor.png)
댓글 수: 0
답변 (1개)
Sebastian Castro
2019년 6월 24일
편집: Sebastian Castro
2019년 6월 24일
Instead of using a Bus Creator block, use a Blank Message block with the right message type (sensor_msgs/joy), and then use a Bus Assignment block to update individual signals in the bus.
Most of the ROS examples in the documentation or the Getting Started examples will show you what this looks like.
- Sebastian
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Publishers and Subscribers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!