EricssonResearch / scott-eu

SCOTT – Secure Connected Trustable Things
https://scottproject.eu/uc04-logistics-management-using-collaborative-robots-and-devops-methodologies/
Apache License 2.0
20 stars 8 forks source link

Lua CHILD SCRIPT error #88

Closed berezovskyi closed 6 years ago

berezovskyi commented 6 years ago
Simulator launched.
Loading scene...
Default scene was set-up.
Loading scene (/home/andrew/scott-eu/simulated-enviroment/logistics_multiple_robots.ttt).  Serialization version is 20.
File was previously written with V-REP version 3.04.00 (rev 1) (V-REP PRO EDU license)
Scene opened.
Simulation started.
Warning: 'print()' now prints to the status bar, instead of the console (use 'print=printToConsole' to revert).
robot waiting for arm command
robot waiting for arm command
Lua runtime error: [string "CHILD SCRIPT youBotStartConfiguration"]:283: Collection does not exist. (sim.addObjectToCollection)
stack traceback:
    [C]: in function 'simAddObjectToCollection'
    ...gistics_multiple_robots_youBotStartConfiguration.lua:283: in function 'file'
    [string "CHILD SCRIPT youBotStartConfiguration"]:18: in main chunk
Lua runtime error: [string "CHILD SCRIPT youBotStartConfiguration#4"]:183: One of the function's argument type is not correct. (sim.setObjectPosition)
stack traceback:
    ...gistics_multiple_robots_youBotStartConfiguration.lua:286: in function <...gistics_multiple_robots_youBotStartConfiguration.lua:286>
    [C]: in function 'simSetObjectPosition'
    ...gistics_multiple_robots_youBotStartConfiguration.lua:183: in function <...gistics_multiple_robots_youBotStartConfiguration.lua:34>
    [C]: in function 'xpcall'
    ...gistics_multiple_robots_youBotStartConfiguration.lua:286: in function 'file'
    [string "CHILD SCRIPT youBotStartConfiguration#4"]:18: in main chunk
Simulation stopping...
Simulation stopping...
Simulation stopped.
Auto-saved scene (/home/andrew/opt/V-REP_PRO_EDU_V3_5_0_Linux/AUTO_SAVED_INSTANCE_2.ttt)
Loading scene...
Default scene was set-up.
Loading scene (/home/andrew/scott-eu/simulation-ros/src/turtlebot2i/turtlebot2i_description/v-rep_model/warehouse_turtlebot2i.ttt).  Serialization version is 21.
File was previously written with V-REP version 3.05.00 (rev 1) (V-REP PRO EDU license)
Scene opened.
Simulation started.
Warning: 'print()' now prints to the status bar, instead of the console (use 'print=printToConsole' to revert).
Lua runtime error: [string "CHILD SCRIPT Dummy"]:14: Object does not exist. (sim.getObjectHandle)
stack traceback:
    [C]: in function 'getObjectHandle'
    [string "CHILD SCRIPT Dummy"]:14: in main chunk
Lua runtime error: [string "CHILD SCRIPT dockstation"]:24: attempt to concatenate global 'robot_name' (a nil value)
stack traceback:
    [string "CHILD SCRIPT dockstation"]:24: in main chunk
Lua runtime error: [string "CHILD SCRIPT dockstation"]:24: attempt to concatenate global 'robot_name' (a nil value)
stack traceback:
    [string "CHILD SCRIPT dockstation"]:24: in main chunk
Lua runtime error: [string "CHILD SCRIPT dockstation#0"]:24: attempt to concatenate global 'robot_name' (a nil value)
stack traceback:
    [string "CHILD SCRIPT dockstation#0"]:24: in main chunk
Lua runtime error: [string "CHILD SCRIPT dockstation#0"]:24: attempt to concatenate global 'robot_name' (a nil value)
stack traceback:
    [string "CHILD SCRIPT dockstation#0"]:24: in main chunk
berezovskyi commented 6 years ago

after trying to run warehouse_turtlebot2i scene.

berezovskyi commented 6 years ago

V-REP PRO EDU 3.5.0 on Ubuntu 16.04

berezovskyi commented 6 years ago

roscore was started as per https://github.com/EricssonResearch/scott-eu/tree/simulation-ros/simulation-ros/doc#start-ros-core but nothing else was done

albertohata commented 6 years ago

It is common to raise errors for few seconds after starting the simulation and then it should stop.

berezovskyi commented 6 years ago

thanks