Search found 8531 matches

by coppelia
04 May 2021, 14:27
Forum: General questions
Topic: How to enable dynamic properties during simulation
Replies: 1
Views: 1105

Re: How to enable dynamic properties during simulation

Hello, yes, you can use some of following API functions for that. But make sure that simulation is not running when doing this, or reset the shape via sim.resetDynamicObject after such a change. sim.setObjectInt32Parameter (shapeHandle,sim.shapeintparam_static,0) sim.setShapeMass sim.setShapeInertia...
by coppelia
03 May 2021, 10:27
Forum: General questions
Topic: Synchronization of MATLAB Control Loop In CoppeliaSim
Replies: 3
Views: 1819

Re: Synchronization of MATLAB Control Loop In CoppeliaSim

You should have a look what the simulation time in CoppeliaSim says: if your simulation time step is 100ms, and you trigger 10 individual steps, then your simulation time should then be at 1 second (your robot could be wrongly configured, etc.). Maybe you can share a minimalistic scene that illustra...
by coppelia
30 Apr 2021, 12:12
Forum: General questions
Topic: Simulate multiple times the same scenario using CoppeliaSim and MATLAB
Replies: 9
Views: 1665

Re: Simulate multiple times the same scenario using CoppeliaSim and MATLAB

Make sure you understand how the legacy remote API works. e.g. carefully read the documentation for simxGetObjectHandle: the first return value is not the handle of the object, but the return code of the call.

Cheers
by coppelia
30 Apr 2021, 08:57
Forum: General questions
Topic: Synchronization of MATLAB Control Loop In CoppeliaSim
Replies: 3
Views: 1819

Re: Synchronization of MATLAB Control Loop In CoppeliaSim

Hello, I am suspecting that you are sending the trigger signal several times during one simulation step. Make sure that one simulation step is done, before sending the next trigger. To do that you could imaging having a non-threaded child script that increments an integer signal (via sim.setInt32Sig...
by coppelia
30 Apr 2021, 08:32
Forum: General questions
Topic: Simulate multiple times the same scenario using CoppeliaSim and MATLAB
Replies: 9
Views: 1665

Re: Simulate multiple times the same scenario using CoppeliaSim and MATLAB

Yes you can also do that from Matlab directly. From there, also make sure that the simulation has really stopped (e.g. by using simxGetInMessageInfo ) before adjusting the initial conditions, and restarting the simulation. When simulation is stopped, you can use sim.setJointPosition and/or simxSetJo...
by coppelia
30 Apr 2021, 08:16
Forum: General questions
Topic: How to set CoppeliaSim to export multiple data for a graph that is not vertically aligned?
Replies: 7
Views: 2075

Re: How to set CoppeliaSim to export multiple data for a graph that is not vertically aligned?

Hello,

you are right, there is a bug in there. We'll try to post a correction revision (rev5) until Monday.

Cheers
by coppelia
29 Apr 2021, 15:36
Forum: General questions
Topic: Simulate multiple times the same scenario using CoppeliaSim and MATLAB
Replies: 9
Views: 1665

Re: Simulate multiple times the same scenario using CoppeliaSim and MATLAB

Hello, not sure I caught everything you meant but: if you need to run several simulation scenarios with different initial conditions, it is indeed best to stop the simulation, change the initial conditions, then start the simulation again. You can automate this of course. From Matlab, you'd call sim...
by coppelia
29 Apr 2021, 15:15
Forum: General questions
Topic: connect v rep to kinect for moving robot
Replies: 4
Views: 1264

Re: connect v rep to kinect for moving robot

We have sent you the c++ project files that allow you to connect to a real Kinect. Not sure which version of the kinect though. But as said, that is very outdated. Probably a better method would be to use the ROS openni_camera package.

Cheers
by coppelia
29 Apr 2021, 15:11
Forum: General questions
Topic: Control robot with torque
Replies: 5
Views: 1400

Re: Control robot with torque

It depends on what physics engine you use. You can sometimes add some friction in the joint's engine properties. Another way would be to add some linear/angular damping for the attached shapes, in the material properties.

Cheers