[position,orientation,velocity,acceleration,angularVelocity,ecef2ref] = lookupPose(traj,sampleTimes)
[ ] = lookupPose(traj,sampleTimes,coordinateSystem)
Description
[position,orientation,velocity,acceleration,angularVelocity,ecef2ref] = lookupPose(traj,sampleTimes)returns the pose information of the waypoint trajectory at the specified sample times. If any sample time is beyond the duration of the trajectory, the corresponding pose information is returned as NaN.
[ ] = lookupPose(traj,sampleTimes,coordinateSystem)additionally enables you to specify the format of the positionoutput.
Examples
Create geoTrajectory and Look Up Pose
Create a geoTrajectorywith starting LLA at [15 15 0] and ending LLA at [75 75 100]. Set the flight time to ten hours. Sample the trajectory every 1000 seconds.
trajectory = geoTrajectory([startLLA;endLLA],timeOfTravel,'SampleRate',sampleRate);
Output the LLA waypoints of the trajectory.
end positionsLLA
positionsLLA
Look up the Cartesian waypoints of the trajectory in the ECEF frame by using the lookupPose
function.
sampleTimes = 0:1000:3600*10; n = length(sampleTimes);
positionsCart = lookupPose(trajectory,sampleTimes,'ECEF');
Visualize the results in the ECEF frame.
[position,orientation,velocity,acceleration,angularVelocity,ecef2ref] = lookupPose(traj,sampleTimes)
[ ] = lookupPose(traj,sampleTimes,coordinateSystem)
Description
[position,orientation,velocity,acceleration,angularVelocity,ecef2ref] = lookupPose(traj,sampleTimes)returns the pose information of the waypoint trajectory at the specified sample times. If any sample time is beyond the duration of the trajectory, the corresponding pose information is returned as NaN.
[ ] = lookupPose(traj,sampleTimes,coordinateSystem)additionally enables you to specify the format of the positionoutput.
Examples
Create geoTrajectory and Look Up Pose
Create a geoTrajectorywith starting LLA at [15 15 0] and ending LLA at [75 75 100]. Set the flight time to ten hours. Sample the trajectory every 1000 seconds.
trajectory = geoTrajectory([startLLA;endLLA],timeOfTravel,'SampleRate',sampleRate);
Output the LLA waypoints of the trajectory.
end positionsLLA
positionsLLA
Look up the Cartesian waypoints of the trajectory in the ECEF frame by using the lookupPose
function.
sampleTimes = 0:1000:3600*10; n = length(sampleTimes);
positionsCart = lookupPose(trajectory,sampleTimes,'ECEF');
Visualize the results in the ECEF frame.