Skip to content
New issue

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

Waypoints- input explanation #53

Closed
Akhil2194 opened this issue Nov 20, 2020 · 3 comments
Closed

Waypoints- input explanation #53

Akhil2194 opened this issue Nov 20, 2020 · 3 comments

Comments

@Akhil2194
Copy link

The way points in the C++/Params/track.json already consists of the racing line (X and Y co-ordinate ) as input which the RC cars follows. Shouldn't the trajectory (X and Y co-ordinates ) be calculated by the cost functions as an output ?

@alexliniger
Copy link
Owner

No the track.json file for the miniature race cars is the middle line. MPCC is a path following controller, thus, it needs a reference path it should roughly follow, we often use the middle line, but an ideal line does also work. For the full-size car implementation, I did only have a rough ideal line, but still if you allow MPCC to deviate it will cut the corners more than the ideal line. Finally, there is a difference between an ideal path and the corresponding full state trajectory.

P.S. using the ideal line actually helps the performance as we showed in a IROS 2020 paper: https://arxiv.org/abs/2003.04882

@Akhil2194
Copy link
Author

@alexliniger hi. i was trying to test the code with separate waypoints without the inner and outer boundaries . It worked for one set of waypoints bu not for the other. I am getting an error -

bounds initialized
MPCC: /home/akhilsharma/MPCC/C++/External/Eigen/Eigen/src/Core/DenseCoeffsBase.h:181: Eigen::DenseCoeffsBase<Derived, 0>::CoeffReturnType Eigen::DenseCoeffsBase<Derived, 0>::operator()(Eigen::Index) const [with Derived = Eigen::Matrix<double, -1, 1>; Eigen::DenseCoeffsBase<Derived, 0>::CoeffReturnType = const double&; Eigen::Index = long int]: Assertion `index >= 0 && index < size()' failed.
Aborted (core dumped)

The waypoint file is attached here.

pretty.txt

@alexliniger
Copy link
Owner

Your file has 1178 element in X but only 1169 in Y
The length of X, and Y has to be the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants