leggedrobotics / elevation_mapping_cupy

Elevation Mapping on GPU.
MIT License
521 stars 114 forks source link

Python install setup #18

Closed AlexReimann closed 2 years ago

AlexReimann commented 2 years ago
AlexReimann commented 2 years ago

Fix for #16

mktk1117 commented 2 years ago

Thanks Alex!

AlexReimann commented 2 years ago

One further remark:

For me the installed package python module was not by default found, because it gets installed into the lib/python3/ and the env PYTHONPATH only has ``lib/python2.7/ under ROS melodic.

This was fixed by adding <env name="PYTHONPATH" value="/opt/<your install dir>/lib/python3/dist-packages:$(env PYTHONPATH)" /> in the <node></node> tag of the launch file:

<launch>
  <node pkg="elevation_mapping_cupy" type="elevation_mapping_node" name="elevation_mapping">
    <env name="PYTHONPATH" value="/opt/<your install dir>/lib/python3/dist-packages:$(env PYTHONPATH)" />
  </node>
</launch>

Might want to add a note about this somewhere?