I need help updating the camera position and view direction
1 view (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Robotics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!