필터 지우기
필터 지우기

I need help updating the camera position and view direction

조회 수: 1 (최근 30일)
Amanda
Amanda 2022년 12월 6일
I need to update the robot_location (given as the 2d-coordinates of the center of the cell the robot is currently in), the robot_heading ( the heading direction of the robot given the usual code of 1 = north, 2= east, 3= south, 4= west). im unsure of how to do so
function setRobotView(robot_location, robot_heading, axes3d)
% This function will be called when the robot visualization needs to be updated.
% robot_center: 2d-array with the coordinates of the center-point of cell the robot is currently in
% robot_heading: scalar with the heading direction of the robot, 1=north, 2=east, 3=south, 4=west
% axes3d: handle to the axes-object containing the 3d-visualization of the maze
% ----------------------------------------------------------------------------------------------------
% add your code here for (b)
% ----------------------------------------------------------------------------------------------------
end

답변 (0개)

카테고리

Help CenterFile Exchange에서 ROS Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by