Simulation fail calling sim.loadScene

Typically: "How do I... ", "How can I... " questions
Post Reply
vrepUser94
Posts: 9
Joined: 08 Jan 2018, 08:41

Simulation fail calling sim.loadScene

Post by vrepUser94 » 11 Jul 2018, 15:37

Hello,

I am trying to load scenes by using the function "sim.loadScene", which i call in a customization script. I actually send a message via ROS to trigger the loading process. The problem is though, that the v-rep closes whenever this function is called.

Some of the last lines, that are printed in the terminal are (maybe it helps):

vrep: malloc.c:3722: _int_malloc: Assertion `(unsigned long) (size) >= (unsigned long) (nb)' failed.
./vrep.sh: line 33: 10029 Aborted (core dumped) "$dirname/$appname" "${PARAMETERS[@]}"

Does anyone have an idea how to solve this problem?

Thanks a lot

coppelia
Site Admin
Posts: 6792
Joined: 14 Dec 2012, 00:25

Re: Simulation fail calling sim.loadScene

Post by coppelia » 13 Jul 2018, 17:33

Hello,

you cannot use that function from a customization script, since that function will trigger first a scene erase before a scene load.
You can only use that function from an add-on (or from the sanbox script).

Cheers

Post Reply