File tree Expand file tree Collapse file tree 2 files changed +4
-32
lines changed Expand file tree Collapse file tree 2 files changed +4
-32
lines changed Original file line number Diff line number Diff line change 1- try :
2-     import  ipctk   # Try to import the built module 
3- except  ImportError :
4-     import  sys 
5-     import  pathlib 
6-     repo_root  =  pathlib .Path (__file__ ).parents [2 ]
7-     possible_paths  =  [
8-         pathlib .Path ("python" ).resolve (),
9-         repo_root  /  "build"  /  "python" ,
10-         repo_root  /  "build"  /  "release"  /  "python" ,
11-         repo_root  /  "build"  /  "debug"  /  "python" ,
12-     ]
13-     for  path  in  possible_paths :
14-         if  path .exists () and  len (list (path .glob ("ipctk.*" ))) >  0 :
15-             sys .path .append (str (path ))
16-             break 
17-     else :
18-         raise  ImportError ("Could not find the ipctk module" )
19-     print (f"Using found ipctk module at { path }  " )
20-     import  ipctk   # Try again 
1+ import  sys 
2+ import  pathlib 
3+ sys .path .append (str (pathlib .Path (__file__ ).parents [1 ]))
4+ from  _find_ipctk  import  ipctk   # noqa 
Original file line number Diff line number Diff line change 44
55namespace  ipc ::rigid {
66
7- namespace  {
8-     inline  Eigen::Matrix3d
9-     cross_product_matrix (Eigen::ConstRef<Eigen::Vector3d> x)
10-     {
11-         Eigen::Matrix3d X;
12-         X << 0 , -x.z (), x.y (), // 
13-             x.z (), 0 , -x.x (),  // 
14-             -x.y (), x.x (), 0 ;
15-         return  X;
16-     }
17- } //  namespace
18- 
197Eigen::Matrix3d
208rotation_vector_to_matrix (Eigen::ConstRef<Eigen::Vector3d> theta)
219{
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments