I need help updating the camera position and view direction
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Robotics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!