wkentaro / octomap-python

Python binding of the OctoMap library.
81 stars 28 forks source link

extractPointCloud() Method doesnt Work #21

Open alre5639 opened 7 months ago

alre5639 commented 7 months ago

After building the Octomap the extractPointCloud() method always results in the following error:

occupied, empty = octree.extractPointCloud()
  File "octomap/octomap.pyx", line 505, in octomap.OcTree.extractPointCloud
  File "octomap/octomap.pyx", line 257, in __iter__
AttributeError: 'octomap.leaf_iterator' object has no attribute '_leaf_iterator__is_end'

Im thinking this is a decency issue given I cant run the setup script, any advice would be appreciated

zhangzirui1998 commented 7 months ago

I also encountered the same problem, have you solved it?

williamshen-nz commented 7 months ago

I was able to fix with older version of the dependencies

trimesh==3.8.11
cython==0.29.25
shaoxh commented 5 months ago

It's some mismatched APIs in the octomap-phthon packages. Installing this one solved my issue. pip install octomap-python==1.8.0.post11

zhangzirui1998 commented 5 months ago

It's some mismatched APIs in the octomap-phthon packages. Installing this one solved my issue. pip install octomap-python==1.8.0.post11

thanks, I will try later

lorinachey commented 4 months ago

I had the same error. I was able to fix it using:

pip install octomap-python==1.8.0.post11
pip install trimesh==3.8.11
pip install cython==0.29.25
Astik-2002 commented 1 month ago

hello devs. I have the same issue and I installed all the packages with the versions given above. still I'm getting the same error occupied, empty = octree.extractPointCloud() File "octomap/octomap.pyx", line 505, in octomap.OcTree.extractPointCloud File "octomap/octomap.pyx", line 257, in __iter__ AttributeError: 'octomap.leaf_iterator' object has no attribute '_leaf_iterator__is_end' . The list of packages in my environment is pinned below. I'm working on gym-pybullet-drones hence I had to use conda. Kindly share how to solve this pkg_list_octomap.txt

166wsl commented 6 days ago

Is any other slove for the same issue?