clearpathrobotics / occupancy_grid_utils

Forked from https://kforge.ros.org/gridutils/git with Catkinizing changes. The package contains utilities for dealing with occupancy grids, represented as nav_msgs::OccupancyGrid objects, including coordinate conversions, shortest paths, ray tracing, and constructing from laser scans.
42 stars 48 forks source link

Python bindings not working #18

Open luator opened 7 years ago

luator commented 7 years ago

Hello,

I am unable to use the Python bindings of this package. After compilation (using catkin build), I can import occupancy_grid_utils but it has no members. When I cd into the src directory and run python python_test.py I get the following error:

Traceback (most recent call last):
  File "python_test.py", line 5, in <module>
    import occupancy_grid_utils_python as gu
  File "/home/fwidmaier/ws/src/occupancy_grid_utils/src/occupancy_grid_utils_python/__init__.py", line 10, in <module>
    from .str import *
  File "/home/fwidmaier/ws/src/occupancy_grid_utils/src/occupancy_grid_utils_python/str.py", line 56, in <module>
    Cell.__str__ = cell_str
NameError: name 'Cell' is not defined

Edit: Forgot to mention that I am using ROS Kinetic on Ubuntu 16.04 (in case it matters)

sabrinamoh1 commented 3 years ago

Hi, Did you close this issue? What was your solution? I am experiencing a similar problem.

luator commented 3 years ago

To be honest, I don't remember anymore... But I assume if I had found a solution back then, I would have posted it here, so probably I didn't find one.