Neural-Navigator
Neural-Navigator copied to clipboard
How get the p2 by p1 and angel?
Hello, I read your code, have a question。I have a point(a,b) now, and i want to get the observation through camera. how to get the p2 through p1 and the angle?
this code: in class Simulator method observe_with_camera p2 = p1 + np.array([np.cos(angle)*face_direction[0]-np.sin(angle)*face_direction[1],np.sin(angle)*face_direction[0]+np.cos(angle)*face_direction[1]])