We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DiscreteTimeTrajectory
Is your feature request related to a problem? Please describe.
std::vector
Trajectory
Describe the solution you'd like Implement the following three methods in the DiscreteTimeTrajectory class
DiscreteTimeTrajectory(const std::vector<T>& times, std::vector<MatrixX<T>>&& values, const double time_comparison_tolerance) DiscreteTimeTrajectory(std::vector<T>&& times, std::vector<MatrixX<T>>&& values, const double time_comparison_tolerance) static DiscreteTimeTrajectory<T> SampleFrom(const Tajectory<T>& traj, double time_period, double time_offset=0)
Additional Considerations
A potential issue with SampleFrom is handling cases where traj.start_time() == -inf or traj.end_time() == inf. Possible solutions include:
SampleFrom
traj.start_time() == -inf
traj.end_time() == inf
Feedback on the preferred behavior for these edge cases would be appreciated.
The text was updated successfully, but these errors were encountered:
Wouldn't the Trajectory::vector_values method do what you need? I guess this doesn't work for trajectories that are matrix-value yet.
Trajectory::vector_values
Sorry, something went wrong.
No branches or pull requests
Is your feature request related to a problem? Please describe.
DiscreteTimeTrajectory
, thestd::vector
used for its construction is unnecessarily copied.Trajectory
and generate aDiscreteTimeTrajectory
.Describe the solution you'd like
Implement the following three methods in the
DiscreteTimeTrajectory
classAdditional Considerations
A potential issue with
SampleFrom
is handling cases wheretraj.start_time() == -inf
ortraj.end_time() == inf
. Possible solutions include:Feedback on the preferred behavior for these edge cases would be appreciated.
The text was updated successfully, but these errors were encountered: