Search found 88 matches

by CroCr
27 Feb 2025, 12:31
Forum: General questions
Topic: Detected dynamically enabled
Replies: 5
Views: 570

Re: Detected dynamically enabled


So when running the simulation, click the Visualize and verify dynamic content toolbar button: you will see the objects being dynamically simulated color-coded: the top_plate_link_respondable shape appears white (and not red): this means that the shape is static, and that's the culprit. Simply ...
by CroCr
26 Feb 2025, 11:18
Forum: General questions
Topic: Detected dynamically enabled
Replies: 5
Views: 570

Re: Detected dynamically enabled


Hello,

please post the related scene file, and we can have a look at it. Usually it is not wise to ignore the warnings...

Cheers


The scene can be found here https://github.com/offroad-robotics/robot-simulator-comparison

my lua script is

function sysCall_init()
sim = require('sim ...
by CroCr
26 Feb 2025, 07:42
Forum: General questions
Topic: Detected dynamically enabled
Replies: 5
Views: 570

Detected dynamically enabled

I need to work with the Husky mobile robot, which is not included in CoppeliaSim. While searching, I discovered the model in the paper "How to Pick a Mobile Robot Simulator." Since I do not require ROS, I have eliminated all its functions. The model functions fine in Bullet and Newton, but the ...
by CroCr
13 Dec 2024, 20:10
Forum: General questions
Topic: Issue with Setting Object Quaternion
Replies: 6
Views: 8193

Re: Issue with Setting Object Quaternion


Try to have a look at the demo scene scenes/eulerAngles.ttt : you will see there are many different ways one can generate a rotation and how it is expressed relative to the world or the mobile body. Or maybe I can't exactly grasp what you are trying to achieve exactly ;)

Cheers


Thank you for ...
by CroCr
12 Dec 2024, 13:10
Forum: General questions
Topic: Issue with Setting Object Quaternion
Replies: 6
Views: 8193

Re: Issue with Setting Object Quaternion


Then you are probably better off using Euler angles

Cheers


I discovered the problem, but I was unable to solve it. The problem is that I need to rotate with respect to the body frame, so I need to retrieve its current orientation with respect to the world. With pressing the keyboard, there is ...
by CroCr
11 Dec 2024, 11:34
Forum: General questions
Topic: Issue with Setting Object Quaternion
Replies: 6
Views: 8193

Re: Issue with Setting Object Quaternion


Hello,

not sure I understand exactly what you are trying to achieve, but below are the CoppeliaSim equivalent routines:

function quaternionFromEuler(roll, pitch, yaw)
local m = sim.buildMatrix({0, 0, 0}, {roll, pitch, yaw})
local p = sim.matrixToPose(m)
return {p[4], p[5], p[6], p[7]}
end ...
by CroCr
10 Dec 2024, 20:02
Forum: General questions
Topic: Issue with Setting Object Quaternion
Replies: 6
Views: 8193

Issue with Setting Object Quaternion

I'm having trouble setting the quaternion for an object. I need to control the orientation of a sphere within the body frame {E} (i.e. dummy frame attached to the sphere). So let rWE represent the orientation of {E} with respect to {W}. Now let's say I need to rotate the object about its x-axis ...
by CroCr
06 Dec 2024, 16:54
Forum: General questions
Topic: Reaction Forces with Different Physics Engines
Replies: 0
Views: 6475

Reaction Forces with Different Physics Engines

I'm conducting a simple experiment where a sphere hits a wall, and I record the reaction forces. The sphere's weight has been compensated by sim.addForceAndTorque(SphereHandle,{0,0,0.1*9.81}). The sphere moves with a constant velocity.

function sysCall_actuation()
-- put your actuation code here ...
by CroCr
20 Jun 2024, 21:45
Forum: Feature requests
Topic: CoppeliaSim Certificate
Replies: 3
Views: 18060

Re: CoppeliaSim Certificate

Would you be able to provide us with more information about it?
by CroCr
20 Jun 2024, 20:21
Forum: General questions
Topic: Cancelling Gravity Using addForce
Replies: 3
Views: 2241

Re: Cancelling Gravity Using addForce


Hello,

both solutions work fine, but the second is a bit simpler. In your case you could just do:

sim.addForceAndTorque(CapsuleHandle,{0,0,0.06*9.81})

sim.addForceAndTorque applies the force (and possibly a torque) at the center of mass of the shape, where the force vector is expressed in the ...