-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Provide pod wrapper for the student version of snopt #245
Comments
my best guess is that you had some failures during your build process. Most likely cmake could not find your matlab executable. If you run “make configure” in the drake-distro/drake folder you should see the error. If my guess is correct, then the easiest fix is to do something like
Then you will have to rerun make (from drake-distro, because spotless will have failed to install, too). If I’m wrong, sending me the output of the
On Jul 24, 2014, at 9:27 AM, junji15 [email protected] wrote:
|
Dear Mr.Russ, Thank you for your advice. But I've not solved a problem yet. If I run the "testIK.m" in Matlab, The below message is appeared.
Error in InverseKinematics/solve (line 126) Error in testIK>test_IK_userfun (line 451) Error in testIK (line 61) Error in run (line 63) But I cannot find "IK mex" in drake-distro now. How can I build "IK mex"? |
The first warning makes me think that the build process could not find a java compiler. That will limit your use of LCM. Unfortunately, the current mex IK implementation requires a license for SNOPT (there is a free, but limited student license). We should handle this missing dependency more gracefully. IK should run (more slowly) without mex, but the IK_test explicitly tries to compare the mex implementation with the matlab-only implementation, so is failing for you. For the mex collision detection to be enabled, you will need bullet and eigen3, which are pods available in the "rigidbody" distro.
On Jul 26, 2014, at 7:47 PM, junji15 [email protected] wrote:
|
Dear Mr. Russ, Thank you for your answer. And I want to ask some questions.
Which stage did I mistake of the build process? It is the result of running “make configure” in the drake-distro and drake folder. kikuchi@prak3:~/Downloads/drake-distro$ make configure -- lcm checking build system type... x86_64-unknown-linux-gnu Configuration (LCM):
-- libbot make[1]: *** No rule to make target `configure'. Stop. -- eigen BUILD_PREFIX: /home/kikuchi/Downloads/drake-distro/build abort: repository /home/kikuchi/Downloads/drake-distro/eigen/eigen-eigen-6b38706d90a9 not found! -- ************************************************************-- Build type: Release -- ARM NEON: Using architecture defaultsCXX: /usr/bin/c++ -- ************************************************************-- Configured Eigen 3.2.1-- Some things you can do now: -- --------------+-------------------------------------------------------------- -- --------------+-------------------------------------------------------------- -- --------------+---------------------------------------------------------------- Configuring done -- bullet BUILD_PREFIX: /home/kikuchi/Downloads/drake-distro/build OPENGL FOUND -- snopt make[1]: *** No rule to make target `configure'. Stop. -- gurobi make: *** gurobi: No such file or directory. Stop. -- gloptipoly3 make: *** gloptipoly3: No such file or directory. Stop. -- bertini make: *** bertini: No such file or directory. Stop. -- sedumi make: *** sedumi: No such file or directory. Stop. -- avl BUILD_PREFIX: /home/kikuchi/Downloads/drake-distro/build -- Configuring done -- xfoil BUILD_PREFIX: /home/kikuchi/Downloads/drake-distro/build -- Configuring done -- spotless BUILD_PREFIX: /home/kikuchi/Downloads/drake-distro/build -- Configuring done -- drake BUILD_PREFIX: /home/kikuchi/Downloads/drake-distro/build CMake Warning at cmake/mex.cmake:204 (message): -- checking for module 'lcm' -- Found bullet CMake Warning at cmake/pods.cmake:412 (message): CMake Warning at cmake/pods.cmake:433 (message): CMake Warning at cmake/pods.cmake:412 (message): -- checking for module 'eigen3' The below is the result of the drake folder. kikuchi@prak3:~/Downloads/drake-distro/drake$ make configure BUILD_PREFIX: /home/kikuchi/Downloads/drake-distro/build CMake Warning at cmake/mex.cmake:204 (message): -- checking for module 'lcm' -- Found bullet CMake Warning at cmake/pods.cmake:412 (message): CMake Warning at cmake/pods.cmake:433 (message): CMake Warning at cmake/pods.cmake:412 (message): -- checking for module 'eigen3' I'm sorry for asking many questions. Junji Kikuchi |
Sorry for the delay.
|
for the second issue, the results of your |
renaming this issue to remind me of the student snopt request |
Dear Mr. Russ, Thank you for your answer. Regarding first issue: Thank you for giving me the file. I try to set pkgconfig files in drake-distro. Regarding second issue: I'm searching "lcmtypes_drake.jar" in these folders. But I couldn't find it. I guess my building process has a something wrong. Which building process of the pod is included the file? I would appreciate it very much if you could advise me anything. |
lcmtypes_drake.jar will be built from the drake directory if it finds the required prerequisites (java and lcm-java). And should land in the build/share/java folder afterwords. On Aug 4, 2014, at 4:15 PM, junji15 [email protected] wrote:
|
@sammy-tri -- it would be good to get your input on how we'll link the c++ snopt wrapper to the student version, in case there are potential roadblocks there. |
Evicting from the Kitware queue and handing over to @sammy-tri, based on @RussTedrake's last comment. |
The link above for student SNOPT is dead, and I can't seem to find any live links poking around on google. Is this still something we're interested in? Also our SNOPT build got a bit more custom during the process of adding IPOPT (fortran symbol collisions in versions of BLAS packaged with both libraries, IIRC), so if the student version is binary-only, that could also present some issues. Of course, that assumes I could find that version to test with. |
I have a full version of SNOPT - but I want to build with ROS. I see people posted a makefile for using student snopt, but is there a way I could get the CMakeLists.txt from externals/snopt? |
Hi @ljarin. You're actually a special case (being at MIT), so I will send you an email on how to proceed. |
It would be nice to get a refresh on what's still wanted here. Could someone post a new summary below? |
not everyone has a snopt license. Perhaps a useful summary might be to support "using system snopt". If we can use a version of snopt that someone already has installed, then lots of things get easier. And the student version should work, too. |
Within TRI, I have BUILD files written for using pristine upstream SNOPT. We could first switch back Drake to use pristine SNOPT, and after that it should be fairly easy to let the user change which source tarball Bazel refers to. |
Sounds excellent. I believe that the student snopt is, from the perspective of the build system, identical to the licensed snopt (it just adds a variable limit somewhere in the code). @hongkai-dai -- chime in if you know otherwise? |
Sorry for being late. I believe they should be identical. If the student SNOPT is in 7.2.12. The newer SNOPT 7.5 has different API from ours, and I do not know if we can build SNOPT 7.5. |
Since I am about to start on #7240, which we believe will resolve this issue, I will also take ownership here. |
On master right now, http://drake.mit.edu/bazel.html documents how to set the |
I would have to register as a student and get approved to test this myself. Based on my reading, I think that we can safely consider it resolved. Thank you! N.B. the https://bazel.build/versions/master/docs/bazel-user-manual.html#bazelrc link on http://drake.mit.edu/bazel.html is broken. |
Ah yes, they have redirects for most URLs but they messed up that one. I'll PR that. |
Hello. I am trying to install Drake (rigidbody) of Ubuntu 12.04.1
After the installation and make from source file, if I try to use "addpath_drake.m", the below is apeeared in Matlab:
Error using addpath_drake (line 24)
You must run make first (and/or add your pod build/matlab directory to the matlab path)
Error in run (line 63)
evalin('caller', [script ';']);
But I cannot find "build/matlab directory" in drake-distro. The build folder includes only "bin","include","lib","share".
I would appreciate it very much if you could advise me anything.
Junji Kikuchi
The text was updated successfully, but these errors were encountered: