Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'PointType' from 'semantic_sensor' #8

Open
InsightofSPb opened this issue Nov 29, 2023 · 1 comment

Comments

@InsightofSPb
Copy link

Hello, I tried to start a mapping part.
I've got a husky robot with realsense D435
While starting the roslaunch semantic_octomap semantic_octomap.launch I receive the next error:

process[semantic_cloud-1]: started with pid [51614]
process[semantic_octomap-2]: started with pid [51615]
[ INFO] [1701269714.376682262]: Semantic octomap generated!
Traceback (most recent call last):
  File "/home/s/test_f/devel/lib/semantic_octomap/semantic_sensor_node.py", line 15, in <module>
    exec(compile(fh.read(), python_script, 'exec'), context)
  File "/home/s/test_f/src/SSMI-Mapping/scripts/semantic_sensor_node.py", line 17, in <module>
    from semantic_sensor import PointType, SemanticPclGenerator
ImportError: cannot import name 'PointType' from 'semantic_sensor' (/home/s/test_f/devel/.private/semantic_octomap/lib/semantic_octomap/semantic_sensor.py)
[semantic_cloud-1] process has died [pid 51614, exit code 1, cmd /home/s/test_f/devel/lib/semantic_octomap/semantic_sensor_node.py __name:=semantic_cloud __log:=/home/s/.ros/log/ffe73552-8ec6-11ee-8488-cfc925150467/semantic_cloud-1.log].
log file: /home/s/.ros/log/ffe73552-8ec6-11ee-8488-cfc925150467/semantic_cloud-1*.log

As I understand, classes from semantic_sensor.py are not imported, but I cannot get why it is happening. Files are in same folder, catkin build / catkin_make have been made.
And even log file is not created, I mean log/......./semantic_cloud-1*.log, so I cant check any additional information 😭

Screenshot from 2023-11-29 17-50-34

What am I missing?

@tit006
Copy link
Collaborator

tit006 commented Aug 15, 2024

Should be fixed

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

No branches or pull requests

2 participants