RoboticsAcademy icon indicating copy to clipboard operation
RoboticsAcademy copied to clipboard

[Global Navigation] Runtime error when running example code

Open pawanw17 opened this issue 1 year ago • 2 comments

When trying to run the solution code: https://github.com/JdeRobot/RoboticsAcademy-solutions/blob/master/solutions/global_navigation/basic_Global_Navigation.py

root@e14a8c465c4c:/# HAL-Nodes Thread Started
World : [-108.91089108910893, 1.6248839368616643]
Error in shared image add TypeError("'NoneType' object does not support item assignment")
Traceback (most recent call last):
  File "/workspace/code/shared/image.py", line 180, in add
    self.shm_buf_1[:] = image.tobytes()
TypeError: 'NoneType' object does not support item assignment

image

pawanw17 avatar May 22 '24 12:05 pawanw17

Are you able to reproduce this bug? I am not able to do so

javizqh avatar Jun 03 '24 08:06 javizqh

Can you reproduce this in the new 4.6.1 RB? @pawanw17

javizqh avatar Jul 03 '24 14:07 javizqh

I've been trying this solution and I can't reproduce the issue . But with the solution https://github.com/JdeRobot/RoboticsAcademy-solutions/blob/master/solutions/global_navigation/Global_Navigation.py I get a similar error message:

Error in shared image add IndexError('mmap slice assigment is wrong size')
Traceback (most recent call last):
  File "/workspace/code/shared/image.py", line 156, in add
    self.shm_buf_2[:] = image.tobytes()
IndexError: mmap slice assigment is wrong size

Captura desde 2024-07-10 14-08-30

dduro2020 avatar Jul 10 '24 12:07 dduro2020

This can be closed as this issue cannot be reproduced any more.

javizqh avatar Aug 02 '24 15:08 javizqh