14 lines
		
	
	
		
			335 B
		
	
	
	
		
			Python
		
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			335 B
		
	
	
	
		
			Python
		
	
	
| import os
 | |
| import numpy as np
 | |
| 
 | |
| __eigen_dir__ = "${GTSAM_EIGEN_INCLUDE_FOR_INSTALL}"
 | |
| 
 | |
| def get_includes(include_eigen=True):
 | |
|     root = os.path.dirname(__file__)
 | |
|     parent = os.path.join(root, "..")
 | |
|     path = [root, parent, np.get_include()]
 | |
|     if include_eigen:
 | |
|         path.append(os.path.join(root, __eigen_dir__))
 | |
|     return path
 | |
| 
 |