Search found 19 matches

by napoleon
24 Sep 2021, 08:21
Forum: General questions
Topic: SimSwitchThread in plugin
Replies: 9
Views: 6951

Re: SimSwitchThread in plugin

I agree that it is just a matter of visualization. However, it doesn't quite fit in with the script model since what I want is to visually debug what is happening inside the step "plugin computes something". It is not convenient to go back to the script while sampling configurations. The functionali...
by napoleon
23 Sep 2021, 12:33
Forum: General questions
Topic: SimSwitchThread in plugin
Replies: 9
Views: 6951

Re: SimSwitchThread in plugin

I'd love to show you code, but I'm not allowed to so I'll give explaining another go :) The project that I'm working on is described in http://www.es.mdh.se/pdf_publications/5704.pdf, although we have since improved many things. Essentially we are using a gantry-robot system to place rebars for buil...
by napoleon
23 Sep 2021, 11:25
Forum: General questions
Topic: SimSwitchThread in plugin
Replies: 9
Views: 6951

Re: SimSwitchThread in plugin

Thanks for your reply! I don't think I can massage my use case into the model you are suggesting in any simple way. Maybe I should provide a bit more background and see if there is a way that I'm not finding myself. I am working on an application where I have robots in a gantry structure and I am us...
by napoleon
22 Sep 2021, 10:35
Forum: General questions
Topic: SimSwitchThread in plugin
Replies: 9
Views: 6951

Re: SimSwitchThread in plugin

So I did upgrade again and it seems there is a new handling of child scripts? If I create a threaded child script in the newest version of CoppeliaSim it generates the code that doesn't work with simSwitchThread().
by napoleon
22 Sep 2021, 10:15
Forum: General questions
Topic: SimSwitchThread in plugin
Replies: 9
Views: 6951

Re: SimSwitchThread in plugin

Looking again, I see that my child script was converted from Threaded to Non-threaded as I upgraded..
by napoleon
22 Sep 2021, 10:13
Forum: General questions
Topic: SimSwitchThread in plugin
Replies: 9
Views: 6951

Re: SimSwitchThread in plugin

Some more information. I downgraded to CoppeliaSim 4.0.0 and still couldn't see my robot moving the way I used to. Looking at the script, I found that the entry point was no longer sysCall_threadmain but rather I had the code below. Moving my script to a new threaded child script, a call to sysCall_...
by napoleon
21 Sep 2021, 14:13
Forum: General questions
Topic: SimSwitchThread in plugin
Replies: 9
Views: 6951

SimSwitchThread in plugin

Hi, I recently upgraded to the latest version of CoppeliaSim and since then simSwitchThread from a plugin does not seem to be working in the same way. When I run the following threaded LUA-script I see the robot moving. Removing sim.switchThread() I no longer see the robot moving. Removing sim.setTh...
by napoleon
17 Sep 2021, 12:39
Forum: General questions
Topic: Plugin on Windows 10 after upgrade
Replies: 7
Views: 6112

Re: Plugin on Windows 10 after upgrade

I was not including the sources correctly in coppeliasim_add_plugin.
Now that I use coppeliasim_add_plugin(simExtCoppeliaSimSkanskaLiftWithIK SOURCES ${SOURCES} src/plugin.cpp) where SOURCES contain my files things are working.

Thank you so much for your help.
by napoleon
16 Sep 2021, 19:15
Forum: General questions
Topic: Plugin on Windows 10 after upgrade
Replies: 7
Views: 6112

Re: Plugin on Windows 10 after upgrade

Solved that by using coppeliasim_add_plugin instead of add_library in CMakeLists.txt. However, now I'm getting things like Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol "void __cdecl createContext(struct SScriptCallBack *,char const *,struct c...
by napoleon
16 Sep 2021, 17:29
Forum: General questions
Topic: Plugin on Windows 10 after upgrade
Replies: 7
Views: 6112

Re: Plugin on Windows 10 after upgrade

Thanks, installing xsltproc through chocolatey got me part way there. However, when I build a project created for the previous version of CoppeliaSim I get the error below. Severity Code Description Project File Line Suppression State Error LNK2001 unresolved external symbol "public: virtual void __...