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

visualize! is ambiguous in example notebook #35

Open
janbruedigam opened this issue Aug 20, 2020 · 0 comments
Open

visualize! is ambiguous in example notebook #35

janbruedigam opened this issue Aug 20, 2020 · 0 comments

Comments

@janbruedigam
Copy link
Member

Running the cartpole example notebook, I get the following error when calling

visualize!(vis, model, TrajectoryOptimization.get_trajectory(altro))
ERROR: LoadError: MethodError: visualize!(::Visualizer, ::Cartpole{Float64}, ::Traj{4,1,Float64,RobotDynamics.GeneralKnotPoint{Float64,4,1,SArray{Tuple{5},Float64,1,5}}}) is ambiguous. Candidates:
  visualize!(vis, model::AbstractModel, Z::RobotDynamics.AbstractTrajectory) in TrajOptPlots at C:\Users\janbr\.julia\packages\TrajOptPlots\VirKW\src\rigid_bodies.jl:32
  visualize!(vis, model::Cartpole, x::AbstractArray{T,1} where T) in TrajOptPlots at C:\Users\janbr\.julia\packages\TrajOptPlots\VirKW\src\models.jl:43
  visualize!(vis, model::AbstractModel, Zs::RobotDynamics.AbstractTrajectory...) in TrajOptPlots at C:\Users\janbr\.julia\packages\TrajOptPlots\VirKW\src\rigid_bodies.jl:42
Possible fix, define
  visualize!(::Any, ::Cartpole, ::RobotDynamics.AbstractTrajectory)
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

1 participant