rdiankov / openrave

Open Robotics Automation Virtual Environment: An environment for testing, developing, and deploying robotics motion planning algorithms.
http://www.openrave.org
Other
696 stars 342 forks source link

ikfast error : tj13 was not declared #470

Closed k-okada closed 7 years ago

k-okada commented 7 years ago

Hi, I have following error when compile ikfast generated cpp code

In file included from /home/k-okada/catkin_ws/ws_nextage/src/rtmros_nextage/nextage_ik_plugin/src/nextage_left_arm_ikfast_moveit_plugin.cpp:114:0:
/home/k-okada/catkin_ws/ws_nextage/src/rtmros_nextage/nextage_ik_plugin/src/nextage_left_arm_ikfast_solver_latest.cpp:10149:48: error: ‘tj13’ was not declared in this scope
 CheckValue<IkReal> x2917=IKPowWithIntegerCheck(tj13,-1);                                               ^

the solver.cpp is generated by lastest ikfast.py

 `openrave-config --python-dir`/openravepy/_openravepy_/ikfast.py --robot=main.dae --iktype=transform6d --baselink=1 --eelink=15 --savefile=nextage_left_arm_ikfast_solver.cpp

you can get main.dae from https://github.com/tork-a/rtmros_nextage/raw/indigo-devel/nextage_description/models/main.dae and it was working with solve.cpp generated a few years ago (IKFAST_COMPILE_ASSERT(IKFAST_VERSION==61);)

it seems something wrong around https://github.com/rdiankov/openrave/blob/master/python/ikfast_generator_cpp.py#L2062-L2065

                elif expr.exp.is_integer:
                    # use IKPowWithIntegerCheck in order to make it robust
                    ikpowsymbol = self.symbolgen.next()
                    code2 = cStringIO.StringIO()
                    code2.write('CheckValue<IkReal> %s=IKPowWithIntegerCheck('%ikpowsymbol)

Did you forget to instantiate ikpowsymbol ?

rdiankov commented 7 years ago

kei,

thanks for the report! i just tested on openrave's production (and master) branch version of ikfast and it works without a problem. please try to update the ikfast version from latest openrave.

k-okada commented 7 years ago

rosen thanks for info, I tried 18521d4 Merge branch 'production' of ssh://github.com/rdiankov/openrave into production but we still have ‘tj13’ was not declared problem. here is whole output -> https://gist.github.com/k-okada/9fbdb0bdad88ba9a4278cf2dff2b5dd3 so if you have noticed something please let me know. or could you share output of your environment? so I can try to figure out the difference.

liuhuanjim013 commented 7 years ago

hi kei,

it also worked for me with this hash: f138ae0e5bc54f2537ff6aac4dcdc0345f8e3efd .

maybe i can take a look at your openrave cmake log. it's possible that one of the libraries openrave depends on is old.

k-okada commented 7 years ago

@liuhuanjim013 thanks for your kind support! here is my cmake output.

[openrave:make] cd /home/k-okada/catkin_ws/ws_openrave/build/openrave/build_openrave && cmake /home/k-okada/catkin_ws/ws_openrave/build/openrave/source_openrave -DOPT_FCL_COLLISION=OFF -DCMAKE_INSTALL_PREFIX=/home/k-okada/catkin_ws/ws_openrave/devel/.private/openrave
[openrave:make] Re-run cmake no build system arguments                                                                                                                           
[openrave:make] -- Compiling OpenRAVE Version 0.9.0, soversion=0.9                                                                                                               
[openrave:make] -- Using cmake version 2.8.12                                                                                                                                    
[openrave:make] -- Using double precision                                                                                                                                        
[openrave:make] -- detected system processor: x86_64                                                                                                                             
[openrave:make] -- installing to /home/k-okada/catkin_ws/ws_openrave/devel/.private/openrave, python exe /usr/bin/python, python subdir is lib/python2.7/dist-packages, program suffix is '0.9'
[openrave:make] -- Boost version: 1.54.0                                                                                                                                         
[openrave:make] -- Found the following Boost libraries:                                                                                                                          
[openrave:make] --   regex                                                                                                                                                       
[openrave:make] --   filesystem                                                                                                                                                  
[openrave:make] --   system                                                                                                                                                      
[openrave:make] --   python                                                                                                                                                      
[openrave:make] --   thread                                                                                                                                                      
[openrave:make] --   iostreams                                                                                                                                                   
[openrave:make] --   date_time                                                                                                                                                   
[openrave:make] -- found boost version: 105400                                                                                                                                   
[openrave:make] -- Targetting Unix Makefiles                                                                                                                                     
[openrave:make] -- Using /usr/bin/c++ compiler.                                                                                                                                  
[openrave:make] -- Could NOT find MPFI                                                                                                                                           
[openrave:make] -- Using local crlibm                                                                                                                                            
[openrave:make] -- compiling with double extended (long double) floating point                                                                                                   
[openrave:make] CMake Warning at CMakeLists.txt:480 (find_package):                                                                                                              
[openrave:make]   By not providing "FindASSIMP.cmake" in CMAKE_MODULE_PATH this project has                                                                                      
[openrave:make]   asked CMake to find a package configuration file provided by "ASSIMP", but                                                                                     
[openrave:make]   CMake did not find one.                                                                                                                                        
[openrave:make]                                                                                                                                                                  
[openrave:make]   Could not find a package configuration file provided by "ASSIMP" with any                                                                                      
[openrave:make]   of the following names:                                                                                                                                        
[openrave:make]                                                                                                                                                                  
[openrave:make]     ASSIMPConfig.cmake                                                                                                                                           
[openrave:make]     assimp-config.cmake                                                                                                                                          
[openrave:make]                                                                                                                                                                  
[openrave:make]   Add the installation prefix of "ASSIMP" to CMAKE_PREFIX_PATH or set                                                                                            
[openrave:make]   "ASSIMP_DIR" to a directory containing one of the above files.  If "ASSIMP"                                                                                    
[openrave:make]   provides a separate development package or SDK, be sure it has been                                                                                            
[openrave:make]   installed.                                                                                                                                                     
[openrave:make]                                                                                                                                                                  
[openrave:make]                                                                                                                                                                  
[openrave:make] -- checking for module 'assimp'                                                                                                                                  
[openrave:make] --   found assimp, version 3.0.1264                                                                                                                              
[openrave:make] -- assimp version 3.0.1264, , /usr/include/assimp                                                                                                                
[openrave:make] -- WARNING: you are using the obsolete 'PKGCONFIG' macro, use FindPkgConfig                                                                                      
[openrave:make] -- libxml2 found                                                                                                                                                 
[openrave:make] -- checking for module 'minizip'                                                                                                                                 
[openrave:make] --   package 'minizip' not found                                                                                                                                 
[openrave:make] -- compiling local ann library                                                                                                                                   
[openrave:make] CMake Warning at CMakeLists.txt:713 (find_package):                                                                                                              
[openrave:make]   By not providing "FindFPARSER.cmake" in CMAKE_MODULE_PATH this project has                                                                                     
[openrave:make]   asked CMake to find a package configuration file provided by "FPARSER", but                                                                                    
[openrave:make]   CMake did not find one.                                                                                                                                        
[openrave:make]                                                                                                                                                                  
[openrave:make]   Could not find a package configuration file provided by "FPARSER"                                                                                              
[openrave:make]   (requested version 4.4.3) with any of the following names:                                                                                                     
[openrave:make]                                                                                                                                                                  
[openrave:make]     FPARSERConfig.cmake                                                                                                                                          
[openrave:make]     fparser-config.cmake                                                                                                                                         
[openrave:make]                                                                                                                                                                  
[openrave:make]   Add the installation prefix of "FPARSER" to CMAKE_PREFIX_PATH or set                                                                                           
[openrave:make]   "FPARSER_DIR" to a directory containing one of the above files.  If                                                                                            
[openrave:make]   "FPARSER" provides a separate development package or SDK, be sure it has                                                                                       
[openrave:make]   been installed.                                                                                                                                                
[openrave:make]                                                                                                                                                                  
[openrave:make]                                                                                                                                                                  
[openrave:make] -- checking for one of the modules 'fparser'                                                                                                                     
[openrave:make] -- compiling local fparser library                                                                                                                               
[openrave:make] -- compiling local convexdecomposition library                                                                                                                   
[openrave:make] -- Geometry Parsing: Collada DOM 2.4.4                                                                                                                           
[openrave:make] -- Geometry Parsing: Using Open Asset Import Library 3.0.1264                                                                                                    
[openrave:make] -- Geometry Parsing: Using ivcon                                                                                                                                 
[openrave:make] -- extracting models to /home/k-okada/catkin_ws/ws_openrave/build/openrave/source_openrave/src                                                                   
[openrave:make] -- MATLAB installation not found, is mex in the system path?                                                                                                     
[openrave:make] -- Octave installation not found, is 'mkoctfile' in the system path?                                                                                             
[openrave:make] -- Found sympy version '0.7.4.1'                                                                                                                                 
[openrave:make] -- Assuming sympy version 0.7.x or greater                                                                                                                       
[openrave:make] -- python and boost-python found                                                                                                                                 
[openrave:make] -- FindMoby: Could not find EventDrivenSimulator.h                                                                                                               
[openrave:make] -- Could not find Moby Physics engine. Please install from https://github.com/PositronicsLab/Moby                                                                
[openrave:make] -- enabling FFMPEG support                                                                                                                                       
[openrave:make] -- boost regex found                                                                                                                                             
[openrave:make] -- Could NOT find osgDB (missing:  OSGDB_LIBRARY OSGDB_INCLUDE_DIR)                                                                                              
[openrave:make] -- Could NOT find osgQt (missing:  OSGQT_LIBRARY OSGQT_INCLUDE_DIR)                                                                                              
[openrave:make] -- Could NOT find osgGA (missing:  OSGGA_LIBRARY OSGGA_INCLUDE_DIR)                                                                                              
[openrave:make] -- Could NOT find osgFX (missing:  OSGFX_LIBRARY OSGFX_INCLUDE_DIR)                                                                                              
[openrave:make] -- Could NOT find osgText (missing:  OSGTEXT_LIBRARY OSGTEXT_INCLUDE_DIR)                                                                                        
[openrave:make] -- Could NOT find osgViewer (missing:  OSGVIEWER_LIBRARY OSGVIEWER_INCLUDE_DIR)                                                                                  
[openrave:make] -- Could NOT find osgManipulator (missing:  OSGMANIPULATOR_LIBRARY OSGMANIPULATOR_INCLUDE_DIR)                                                                   
[openrave:make] -- Could NOT find osg (missing:  OSG_LIBRARY OSG_INCLUDE_DIR)                                                                                                    
[openrave:make] -- Could NOT find OpenThreads (missing:  OPENTHREADS_LIBRARY OPENTHREADS_INCLUDE_DIR)                                                                            
[openrave:make] -- Could NOT find OpenSceneGraph (missing:  OPENSCENEGRAPH_LIBRARIES OPENSCENEGRAPH_INCLUDE_DIR) (Required is at least version "3.4")                            
[openrave:make] -- Could not find OpenSceneGraph v3+. Please install OSG (http://www.openscenegraph.org/projects/osg)                                                            
[openrave:make] -- Detected SoQt/Coin3D GUI, making plugin                                                                                                                       
[openrave:make] -- Detected ODE multi-threading extensions, but not sure if should enable them... define ODE_USE_MULTITHREAD variable to use them                                
[openrave:make] -- ODE found, building oderave plugin, precision=DOUBLE                                                                                                          
[openrave:make] -- Configuring done                                                                                                                                              
[openrave:make] -- Generating done                                                                                                                                               
[openrave:make] -- Build files have been written to: /home/k-okada/catkin_ws/ws_openrave/build/openrave/build_openrave    
liuhuanjim013 commented 7 years ago

one thing i noticed is sympy version. can you try 0.7.1?

k-okada commented 7 years ago

@liuhuanjim013 great! it works!! thank you very much. by the why, how did you install sympy? I'm using ubuntu 14.04 and the default sympy is 0.7.4 and I have to install via pip.

liuhuanjim013 commented 7 years ago

Awesome! Yep, pip is the way to go :)

k-okada commented 7 years ago

I see, anyway thank you very much again!!!

2017年2月2日(木) 23:21 Huan Liu notifications@github.com:

Awesome! Yep, pip is the way to go :)

— You are receiving this because you authored the thread.

Reply to this email directly, view it on GitHub https://github.com/rdiankov/openrave/issues/470#issuecomment-276970313, or mute the thread https://github.com/notifications/unsubscribe-auth/AAeG3G27CaCdbh-8OBXL2YPpyIQqGFb1ks5rYeZvgaJpZM4Lm7b0 .

--

◉ Kei Okada

MuneebUlHaq commented 7 years ago

Please let me know , how one can roll back from sympy 1.0 to sympy 0.7.1.. Thanks

ompugao commented 7 years ago

pip install sympy==0.7.1

MuneebUlHaq commented 7 years ago

Thanks for the answer ! I tried but i am getting this error:

muneebul@ubuntu:~$ pip install sympy==0.7.1 Downloading/unpacking sympy==0.7.1 Downloading sympy-0.7.1.tar.gz (3.6MB): 3.6MB downloaded Running setup.py (path:/tmp/pip_build_muneebul/sympy/setup.py) egg_info for package sympy

package init file 'sympy/assumptions/tests/__init__.py' not found (or

not a regular file) package init file 'sympy/concrete/tests/init.py' not found (or not a regular file) package init file 'sympy/core/tests/init.py' not found (or not a regular file) package init file 'sympy/external/tests/init.py' not found (or not a regular file) package init file 'sympy/functions/combinatorial/tests/init.py' not found (or not a regular file) package init file 'sympy/functions/elementary/tests/init.py' not found (or not a regular file) package init file 'sympy/functions/special/tests/init.py' not found (or not a regular file) package init file 'sympy/galgebra/tests/init.py' not found (or not a regular file) package init file 'sympy/geometry/tests/init.py' not found (or not a regular file) package init file 'sympy/integrals/tests/init.py' not found (or not a regular file) package init file 'sympy/logic/tests/init.py' not found (or not a regular file) package init file 'sympy/matrices/tests/init.py' not found (or not a regular file) package init file 'sympy/ntheory/tests/init.py' not found (or not a regular file) package init file 'sympy/parsing/tests/init.py' not found (or not a regular file) package init file 'sympy/physics/quantum/tests/init.py' not found (or not a regular file) package init file 'sympy/physics/tests/init.py' not found (or not a regular file) package init file 'sympy/plotting/tests/init.py' not found (or not a regular file) package init file 'sympy/polys/tests/init.py' not found (or not a regular file) package init file 'sympy/printing/pretty/tests/init.py' not found (or not a regular file) package init file 'sympy/printing/tests/init.py' not found (or not a regular file) package init file 'sympy/series/tests/init.py' not found (or not a regular file) package init file 'sympy/simplify/tests/init.py' not found (or not a regular file) package init file 'sympy/slow_tests/init.py' not found (or not a regular file) package init file 'sympy/solvers/tests/init.py' not found (or not a regular file) package init file 'sympy/statistics/tests/init.py' not found (or not a regular file) package init file 'sympy/tensor/tests/init.py' not found (or not a regular file) package init file 'sympy/utilities/tests/init.py' not found (or not a regular file) Installing collected packages: sympy Found existing installation: sympy 1.0 Uninstalling sympy: Cleaning up... Exception: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run requirement_set.install(install_options, global_options, root=options.root_path) File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1432, in install requirement.uninstall(auto_confirm=True) File "/usr/lib/python2.7/dist-packages/pip/req.py", line 599, in uninstall paths_to_remove.remove(auto_confirm) File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1845, in remove renames(path, new_path) File "/usr/lib/python2.7/dist-packages/pip/util.py", line 296, in renames shutil.move(old, new) File "/usr/lib/python2.7/shutil.py", line 303, in move os.unlink(src) OSError: [Errno 13] Permission denied: '/usr/local/bin/isympy'

Storing debug log for failure in /home/muneebul/.pip/pip.log

On Fri, May 5, 2017 at 5:07 PM, Shohei Fujii notifications@github.com wrote:

pip install sympy==0.7.1

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rdiankov/openrave/issues/470#issuecomment-299474080, or mute the thread https://github.com/notifications/unsubscribe-auth/Aaj5G5aahMOhnlOkIZdEsdFj6Ht6KIX6ks5r2y0ggaJpZM4Lm7b0 .

Puttichai commented 7 years ago

@MuneebUlHaq sudo pip install sympy==0.7.1