I need help updating the camera position and view direction

1 次查看(过去 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 个)

类别

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