meco-group / omg-tools

Optimal Motion Generation-tools: motion planning made easy
GNU Lesser General Public License v3.0
565 stars 98 forks source link

AttributeError: 'Trailer' object has no attribute 'trajectories' #60

Closed Sunshine352 closed 7 years ago

Sunshine352 commented 7 years ago

Trailor, Bicycle etc. object has no attribute 'trajectories'

rubenvanparys commented 7 years ago

If no motion planning problem has been solved yet, this is indeed the case. A vehicle gets a 'trajectories' attribute after an initial motion problem is solved and is updated in subsequent motion updates.

The idea is to extract the trajectories from the Simulator or Deployer.

Sunshine352 commented 7 years ago

Hi, rubenvanparys. I carefully look at tutorial_example, no difference is found between the example and p2p_trailor (p2p_bicycle, p2p_dubins etc.). However, tutorial_example has no problems like "object has no attribute 'trajectories" . May you further describe in detail ?

rubenvanparys commented 7 years ago

Are you running the example scripts as they appear on the repository? Did you install the HSL linear solvers? Can you check if commenting out this line helps? If so, this means you don't have the ma57 solver (which is a bit faster than the default solver used by ipopt). I suspect this is the issue as tutorial_example is the only example that uses the default solver (which is installed if you have the casadi binary).

Sunshine352 commented 7 years ago

When I comment out the line mentioned above, no error appears. Therefore, the reason for this error is that I don't install HSL linear solvers. Thank you very much for your sparing time for my problem !