I need help updating the camera position and view direction

1 visualizzazione (ultimi 30 giorni)
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

Risposte (0)

Categorie

Scopri di più su ROS Toolbox in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by