-
Notifications
You must be signed in to change notification settings - Fork 7
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
Unable to Run example1 or example 2 code, getting error in vec_cross #1
Comments
Download and add https://github.com/HybridRobotics/geometric-toolbox to your path. |
Thanks a lot for your quick reply @vkotaru . I changed it to cross meanwhile and I added the geometric-toolbox to remove other such errors related to toolbox. I am able to move few steps further but it started giving me error stated below Undefined function or variable 'afh_dynamics_mex' Am I missing few other toolboxes to run the examples, Please let me know. |
You are trying to use the |
Thanks @vkotaru I made the change and generated mex by running the script matlab/utils/func_generators/generateMexFiles.m as suggested in Readme description. I am able to run all the examples except 2 examples - Example2 and sim2_TRAJ_nQ2. I am getting this error for both of them - Undefined function or variable 'getNormDerivatives14_mex' Am I generating the mex properly or Should I change some parameters for mex file generation for this ? I have attached the error picture for reference |
As the name suggests its the mexed function for getNormDerivatives14.m, either replace |
@vkotaru Thanks for the reply. I stopped using mex function by replacing - params.dynamics = 'default'. I have attached a picture and also print logs for it. Please let me know how to run examples normally, I am not sure whether I need to do some other steps to run it. Picture - Print log - Error using reshape Error in control_lqr (line 27) Error in example2>@(t,x)control_lqr(mdl,t,x) (line 109) Error in DynamicalSystem/system_dynamics (line 101) Error in DynamicalSystem>@(t,x)system_dynamics(obj,t,x) (line 57) Error in odearguments (line 90) Error in ode15s (line 152) Error in DynamicalSystem/simulate (line 62) Error in example2 (line 117) |
This is the error log -
Undefined function or variable 'vec_cross'
I am using Matlab 2019a as stated in Readme.
I have also attached a picture of the error.
Please check it and let me know, I am looking forward to hearing from you.
The text was updated successfully, but these errors were encountered: