How should I do to use `readBinar​yOccupancy​Grid`?

1 Ansicht (letzte 30 Tage)
Keundong Kang
Keundong Kang am 24 Nov. 2020
Beantwortet: Mohith Kulkarni am 27 Nov. 2020
There has been a problem that I tried to get ros message to see occupancy grid map by using readBinaryOccupancyGrid fuction.
I already installed Robotics System Toolbox, Navigation Toolbox, ROS Toolbox but Matlab keeps showing the message that
readBinaryOccupancyGrid is not a valid function or variable.
I also tried which readBinaryOccupancyGrid to find the path but Matlab keeps showing the message that there is no such function.
However, according to the Matlab guide, there is such a function
Please let me know how to solve this problem
ros message를 받아서 readBinaryOccupancyGrid 기능을 이용해
matlab 상에서 occupancy grid map을 보고자 하는데 문제가 발생했습니다.
Robotics System Toolbox, Navigation Toolbox, ROS Toolbox 등 필요한 애드온을 모두 설치하였음에도
readBinaryOccupancyGrid 가 인식할 수 없는 함수 또는 변수라고 계속해서 뜨고 있습니다.
또한, 경로를 알아보기 위해 which readBinaryOccupancyGrid 를 명령창에 쳐도 없는 함수라고만 뜨고 있습니다.
하지만 매트랩 공식 홈페이지에 따르면 분명히 존재하는 함수입니다.
방법을 알고 계시다면 알려주시면 감사하겠습니다.

Antworten (1)

Mohith Kulkarni
Mohith Kulkarni am 27 Nov. 2020
OccupancyGrid is the custom MATLAB implementation of nav_msgs/OccupancyGrid type. readBinaryOccupancyGrid is a method of OccupancyGrid.
You can try:
help ros.msg.nav_msgs.OccupancyGrid/readBinaryOccupancyGrid
The input msg must be a 'nav_msgs/OccupancyGrid' message for the function to work. Refer to the example in the documentation.

Kategorien

Mehr zu Robotics finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!