Skip to content

Conversation

@zbynekwinkler
Copy link
Member

The whl package on osgar.robotika.cz was fixed to include proper RPATH. For details
see https://github.com/wkentaro/octomap-python/ repository issue no. 1.

To run the included example install also the follwing packages:

  pip install glooye imgviz trimesh scipy networkx

I have not done much yet with it. I've just now made it run the one example.

The whl package was fixed to include proper RPATH. For details
see wkentaro/octomap-python#1 (comment)

To run the included example install also the follwing packages:

  pip install glooye imgviz trimesh scipy networkx
@zbynekwinkler zbynekwinkler requested review from jisa, m3d and pavliik October 29, 2020 15:29
@zbynekwinkler zbynekwinkler marked this pull request as draft October 29, 2020 15:29
@m3d
Copy link
Member

m3d commented Nov 15, 2020

is it also windows package?

pip install -i https://osgar.robotika.cz/subt/pip/ octomap-python==1.8.0.post12
Looking in indexes: https://osgar.robotika.cz/subt/pip/
Collecting octomap-python==1.8.0.post12
  Could not find a version that satisfies the requirement octomap-python==1.8.0.post12 (from versions: )
No matching distribution found for octomap-python==1.8.0.post12

@zbynekwinkler
Copy link
Member Author

is it also windows package?

No. But feel free to try pip install octomap-python. I created this branch because pypi install didn't work out of the box on linux. I have not started my windows computer for several months now.

@m3d
Copy link
Member

m3d commented Nov 16, 2020

is it also windows package?

No. But feel free to try pip install octomap-python. I created this branch because pypi install didn't work out of the box on linux. I have not started my windows computer for several months now.

OK, thanks - I tried the original package too (on Win10), but it wanted to be built with MS Visual Studio -> FAILED on my machine, so I switched to manual decoding ... I may try it on linux later today, thanks.

@m3d
Copy link
Member

m3d commented Nov 16, 2020

Small update:

root@gpu-desktop:/osgar-ws# pip install -i https://osgar.robotika.cz/subt/pip/ octomap-python==1.8.0.post12
Collecting octomap-python==1.8.0.post12
  Could not find a version that satisfies the requirement octomap-python==1.8.0.post12 (from versions: )
No matching distribution found for octomap-python==1.8.0.post12
root@gpu-desktop:/osgar-ws# /osgar-ws/env/bin/python3 -m pip install -i https://osgar.robotika.cz/subt/pip/ octomap-python==1.8.0.post12Looking in indexes: https://osgar.robotika.cz/subt/pip/
Collecting octomap-python==1.8.0.post12
  Downloading https://osgar.robotika.cz/subt/pip/octomap-python/octomap_python-1.8.0.post12-cp36-cp36m-manylinux1_x86_64.whl (2.1 MB)
     |################################| 2.1 MB 164 kB/s
Requirement already satisfied: numpy in ./env/lib/python3.6/site-packages (from octomap-python==1.8.0.post12) (1.19.4)
Installing collected packages: octomap-python
Successfully installed octomap-python-1.8.0.post12

@m3d
Copy link
Member

m3d commented Nov 16, 2020

the octomap-python package seems to give me first hints ...

>>> tree = octomap.OcTree(0.1)

>>> tree.insertPointCloud(np.array([(0.01, 0.01, 0.01)]), np.array((0, 0, 0), dtype=float))
>>> tree.volume()
0.0010000000000000002

>>> for line in tree.writeBinary().split(b'\n'):
...   print(line)
...
b'# Octomap OcTree binary file'
b'# (feel free to add / change comments, but leave the first line as it is!)'
b'#'
b'id OcTree'
b'size 17'
b'res 0.1'
b'data'
b'\x00\xc0\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x02\x00'

thanks m.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants