[SOLVED] Error while creating/deleting devices and topics


#1

I get the following error when I try to use GUI to create or delete new devices or topics in transfer functions.
It occurs both in the online NRP 3.2.0 and the docker installation on Ubuntu 20.04.

In the GUI it seems that the device has been created but no code appears.

This error occurs only in the TFs in which I have already created decorators by directly writing them in the code. For example:

@nrp.MapVariable("i", initial_value=0)
@nrp.MapVariable("indata", initial_value=np.load('resources/sine_700.npy'))
@nrp.MapRobotSubscriber("camera", Topic("/icub/icub_model/left_eye_camera/image_raw", sensor_msgs.msg.Image))
@nrp.MapSpikeSource("input_burst",
                    nrp.map_neurons(range(nrp.config.brain_root.num_columns),
                                    lambda i: nrp.brain.bursters[i]),
                    nrp.poisson,
                    weight=nrp.config.brain_root.w_inh,
                    receptor_type="excitatory")
@nrp.MapSpikeSource("input_pred",
                    nrp.map_neurons(range(nrp.config.brain_root.num_columns * nrp.config.brain_root.num_cells),
                                    lambda i: nrp.brain.predictive[i]),
                    nrp.poisson,
                    weight=nrp.config.brain_root.w_inh,
                    receptor_type="excitatory")
@nrp.MapSpikeSource("input_perc",
                    nrp.map_neurons(range(nrp.config.brain_root.num_columns * nrp.config.brain_root.num_cells),
                                    lambda i: nrp.brain.circuit[i]),
                    nrp.poisson,
                    weight=nrp.config.brain_root.w_inh,
                    receptor_type="excitatory",
                    delay=nrp.config.brain_root.itv*nrp.config.brain_root.step+0.1)
@nrp.Robot2Neuron()
def input_neurons(t, input_perc, input_pred, input_burst, camera, indata, i):

Moreover, sometimes the “create device” button stays inactive even when I tick some neurons, but I cannot pinpoint when it happens. As I was trying to investigate that, the button stopped working at all.

When I write the code directly, the TFs work like intended.

Best regards,
Mikołaj Miękus


#2

This looks like a sync issue between the TF Gui and editor. I raised a ticket for the dev team to look into it.
https://hbpneurorobotics.atlassian.net/browse/NUIT-288
Thanks for reporting.


#3

No problem, thanks :slightly_smiling_face:


#4

Hi Mikołaj
Thanks for reporting.
We are investigating the issue. Could you provide us with your experiment files?


You can export all files using this button.

Best regards


#5

Here you are:
visual_tracking_icub_holodeck_0_0_0_0.zip.txt (72.4 KB)

Have a look at TFs “input_neurons” or “prediction”

Best,
Mikołaj


#6

The ticket is still under development, but I guess you tried the workaround mentioned in
https://hbpneurorobotics.atlassian.net/browse/NUIT-288


#7

For the record: the fix is ready and waiting for deployment.


#8

Fixed and deployed in 3.2.1.
Side note: Do not use any function call in decorator

@nrp.MapVariable(“indata”, initial_value= np.load(‘resources/triangle.npy’))
Instead use:
tmp_array = np.load(‘resources/triangle.npy’)

@nrp.MapVariable(“indata”, initial_value=tmp_array)