How to create custom ui

Typically: "How do I... ", "How can I... " questions
Post Reply
Veman
Posts: 3
Joined: 01 Apr 2024, 23:55

How to create custom ui

Post by Veman »

I have tried to create custom ui setup using simUI.create() method. But, for some reason I am seeing an error as below.

[/led_matrix@childScript:warning] module 'sim' was implicitly loaded.
[/led_matrix@childScript:warning] sim.getObjectHandle is deprecated. Use sim.getObject instead.
[/led_matrix@childScript:warning] module 'simUI' was implicitly loaded.
[/Front@childScript:error] [string "/Front@childScript"]:78: attempt to index a nil value (global 'simUI')
stack traceback:
[string "/Front@childScript"]:78: in function 'sysCall_init'

Veman
Posts: 3
Joined: 01 Apr 2024, 23:55

Re: How to create custom ui

Post by Veman »

I have found the solution. If anyone faces the same issue try commenting the sim=require(''sim') line in the sysCall_init() method.

fferri
Posts: 1231
Joined: 09 Sep 2013, 19:28

Re: How to create custom ui

Post by fferri »

That's not correct.

You have to add simUI = require 'simUI' instead. Plugins have to be loaded explicitly (implicit loading is only a backwards compatibility feature).

Veman
Posts: 3
Joined: 01 Apr 2024, 23:55

Where to find coppelia Sim course for the version 4.6.0

Post by Veman »

The older courses for coppelia Sim available on youtube have differnent functionalities than the current version. Hence, it is very difficult to learn where can I find courses for the newer version.

fferri
Posts: 1231
Joined: 09 Sep 2013, 19:28

Re: How to create custom ui

Post by fferri »

From the official sources:

User Manual: https://manual.coppeliarobotics.com

YouTube channel: https://www.youtube.com/user/VirtualRobotPlatform

Provided example content (in <coppeliaSim directory>/scenes/, models/).

Post Reply