Search found 28 matches
- 23 May 2025, 18:13
- Forum: General questions
- Topic: Multiple objects set parent
- Replies: 3
- Views: 4830
Re: Multiple objects set parent
ok, reading the scene examples I just found the command sim.groupShapes() I'll try it out....
- 23 May 2025, 01:53
- Forum: General questions
- Topic: Multiple objects set parent
- Replies: 3
- Views: 4830
Re: Multiple objects set parent
Hi there, I'm trying to group two objects, which handles are saved in a table, using this third option you talked about but it's not working (nothing happens). Could you help me?
collectionHandle = sim.createCollection(0)
sim.addItemToCollection(collectionHandle, sim.handle_tree, pc[C-1],1 ...
collectionHandle = sim.createCollection(0)
sim.addItemToCollection(collectionHandle, sim.handle_tree, pc[C-1],1 ...
- 28 Nov 2024, 13:48
- Forum: General questions
- Topic: use of table.insert
- Replies: 1
- Views: 1816
Re: use of table.insert
Alright,
I found a solution, just needed to use the step mode to avoid stepping between my if loops
function sysCall_init()
sim = require('sim')
-- Put some initialization code here
sim.setStepping(true) -- enabling stepping mode
end
function sysCall_thread()
-- Put your main code here ...
I found a solution, just needed to use the step mode to avoid stepping between my if loops
function sysCall_init()
sim = require('sim')
-- Put some initialization code here
sim.setStepping(true) -- enabling stepping mode
end
function sysCall_thread()
-- Put your main code here ...
- 27 Nov 2024, 22:16
- Forum: General questions
- Topic: use of table.insert
- Replies: 1
- Views: 1816
use of table.insert
Hello,
I made a small script into a empty scene to test understand how to use tables to store data I'll use later in my research to pick and place random objects created on-the-fly. The code follows:
function sysCall_init()
sim = require('sim')
-- Put some initialization code here
-- sim ...
I made a small script into a empty scene to test understand how to use tables to store data I'll use later in my research to pick and place random objects created on-the-fly. The code follows:
function sysCall_init()
sim = require('sim')
-- Put some initialization code here
-- sim ...
- 11 Nov 2024, 21:24
- Forum: General questions
- Topic: Multiple threaded scripts
- Replies: 18
- Views: 27465
Re: Multiple threaded scripts
Any help on this issue is welcome...
- 04 Nov 2024, 19:43
- Forum: General questions
- Topic: Multiple script objects enabling on the fly
- Replies: 5
- Views: 11824
Re: Multiple script objects enabling on the fly
You are right, I've just made a simpler scene with only one robot, and it worked as expected.
My system have grown so much that gets difficult to find where the problem is, I'm considering rebuilding it in the latest version of coppeliasim.
Thank you guys.
My system have grown so much that gets difficult to find where the problem is, I'm considering rebuilding it in the latest version of coppeliasim.
Thank you guys.
- 04 Nov 2024, 16:46
- Forum: General questions
- Topic: Multiple script objects enabling on the fly
- Replies: 5
- Views: 11824
Re: Multiple script objects enabling on the fly
Ok I have included a sim.initScript(R11) instruction right after enabling it but it didn't work also... are there any limitation about controlling a robot with a script enabled on-the-fly?
- 04 Nov 2024, 16:34
- Forum: General questions
- Topic: Multiple script objects enabling on the fly
- Replies: 5
- Views: 11824
Re: Multiple script objects enabling on the fly
Yeah, the enabling part is working fine, as you can see in the video the R11 object is enabled and the target dummy starts moving but the robot doesn't...
If it's enabled in the start of the simulation the robot does move, if I enable it later, it doesn't...
I'll try the the init function ....
If it's enabled in the start of the simulation the robot does move, if I enable it later, it doesn't...
I'll try the the init function ....
- 04 Nov 2024, 16:07
- Forum: General questions
- Topic: Multiple script objects enabling on the fly
- Replies: 5
- Views: 11824
Multiple script objects enabling on the fly
Hello forum,
At the moment I'm trying to develop a flexible warehouse robot where I can add more parts to be picked by a robot without prior programming. As a first option I tried to use the possibilities of enabling a script object to control the robot during the simulation, as a part is requested ...
At the moment I'm trying to develop a flexible warehouse robot where I can add more parts to be picked by a robot without prior programming. As a first option I tried to use the possibilities of enabling a script object to control the robot during the simulation, as a part is requested ...
- 29 Oct 2024, 20:51
- Forum: General questions
- Topic: Multiple threaded scripts
- Replies: 18
- Views: 27465
Re: Multiple threaded scripts
Hello guys,
I'm rebuilding my simulation scene using the last version of the simulator but sim.waitForSignal() is not working anymore, I saw in the documentation I should use the properties instead but I didn't understand how to implement the sim.waitForSignal as it was before...
I'm rebuilding my simulation scene using the last version of the simulator but sim.waitForSignal() is not working anymore, I saw in the documentation I should use the properties instead but I didn't understand how to implement the sim.waitForSignal as it was before...