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

OccupancyGrid' object has no attribute '_slot_types' #638 #885

Open
jesusramondovale opened this issue Oct 23, 2023 · 2 comments
Open

OccupancyGrid' object has no attribute '_slot_types' #638 #885

jesusramondovale opened this issue Oct 23, 2023 · 2 comments
Labels

Comments

@jesusramondovale
Copy link

  • Library Version: latest
  • ROS Version: Humble
  • Platform / OS: Ubuntu 22.04

I'm using ros3djs on my ASP.NET webpage (cshtml) and when I try to visualize a 3D map the ros_server service executed in my ROS machine stops and gives the error :

"OccupancyGrid' object has no attribute '_slot_types'"

`File "/opt/ros/humble/local/lib/python3.10/dist-packages/rosbridge_library/capabilities/subscribe.py", line 159, in _publish
    self.publish(message, self.fragment_size, self.compression)
  File "/opt/ros/humble/local/lib/python3.10/dist-packages/rosbridge_library/capabilities/subscribe.py", line 318, in publish
    outgoing_msg = message.get_cbor(outgoing_msg)
  File "/opt/ros/humble/local/lib/python3.10/dist-packages/rosbridge_library/internal/outgoing_message.py", line 38, in get_cbor
    outgoing_msg["msg"] = self.get_cbor_values()
  File "/opt/ros/humble/local/lib/python3.10/dist-packages/rosbridge_library/internal/outgoing_message.py", line 33, in get_cbor_values
    self._cbor_values = extract_cbor_values(self._message)
  File "/opt/ros/humble/local/lib/python3.10/dist-packages/rosbridge_library/internal/cbor_conversion.py", line 53, in extract_cbor_values
    for slot, slot_type in zip(msg.__slots__, msg._slot_types):
AttributeError: 'OccupancyGrid' object has no attribute '_slot_types'`
@dzw-tw
Copy link

dzw-tw commented Apr 11, 2024

I also have this problem, have you solved it?

@chanhhoang99
Copy link

For whom who get this error, I believe you are installing your rosbridge_suite from apt which is out of date.
I tried building rosbridge_suite from source, seems to work fine at least with ros3djs.
Of it's still not working, you may try to set compression value to false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants