Search found 5735 matches

by coppelia
24 Apr 2024, 08:01
Forum: General questions
Topic: How to get sensor data of Accerometer and GyroSensor in MATLAB?
Replies: 1
Views: 29

Re: How to get sensor data of Accerometer and GyroSensor in MATLAB?

Hello,

the error very probably happens because the signal is not set (yet), and the call to sim.getFloatSignal returns nothing. So you can't assign nothing to a variable in MATLAB. Use a try-catch block to handle a possibly non-existing return value.

Cheers
by coppelia
24 Apr 2024, 07:37
Forum: General questions
Topic: How to make dummy move along a given path?
Replies: 2
Views: 32

Re: How to make dummy move along a given path?

See also the demo scene scenes/movingAlongAPath-lua.ttt

Cheers
by coppelia
24 Apr 2024, 07:36
Forum: General questions
Topic: How to speed up simulation?
Replies: 4
Views: 767

Re: How to speed up simulation?

Hello, yes, it is normal that the display is black, since you disabled rendering with: sim.setBoolParam(sim.boolparam_display_enabled, False) Disabling rendering will not disable vision sensors that will still be able to function normally. Instead of sim.getVisionSensorCharImage, use sim.getVisionSe...
by coppelia
24 Apr 2024, 07:25
Forum: General questions
Topic: The issue of console window not being able to hide
Replies: 1
Views: 43

Re: The issue of console window not being able to hide

Hello,

it seems that Windows is now handling console windows in a grouped fashion, and you cannot directly hide individual consoles anymore: those consoles will simply be minimized, not hidden. This now also happens with older CoppeliaSim releases (on Windows 11).

Cheers
by coppelia
24 Apr 2024, 07:01
Forum: General questions
Topic: Questions about the use of sim_message_keypress
Replies: 1
Views: 51

Re: Questions about the use of sim_message_keypress

Hello, this is an undocumented feature. Use following to get inspiration: --lua sim=require'sim' function sysCall_thread() while true do -- Read the keyboard messages (make sure the focus is on the main window, scene view): local msg, auxData = sim.getSimulatorMessage() if msg ~= -1 then if msg == s...
by coppelia
24 Apr 2024, 06:53
Forum: Bug reports
Topic: Heightfield ground doesn't match actual solid floor
Replies: 1
Views: 33

Re: Heightfield ground doesn't match actual solid floor

Hello,

thanks for the mention, yes, we are aware of that and it should be fixed for next release (in 2-4 weeks).

Cheers
by coppelia
19 Apr 2024, 14:42
Forum: General questions
Topic: Control pioneer with Matlab
Replies: 1
Views: 73

Re: Control pioneer with Matlab

Hello, best would be to post a minimalistic, self-containing scene, that illustrates your problem. Not sure what object you use to get the robot's position/orientation, but if you use the robot's base, then indeed you can only look at the gamma component of the orientation. Keep in mind that it vari...
by coppelia
19 Apr 2024, 14:34
Forum: General questions
Topic: How to Handle Floating Base Issues in Mujoco with a Robotic Arm?
Replies: 4
Views: 102

Re: How to Handle Floating Base Issues in Mujoco with a Robotic Arm?

About your second problems: Many things can go wrong or are rather tricky: You have the sim and IK world. They should be synced, otherwise you'll see some strange effects due to mismatches Since your robot can be upside-down, things get tricky because the IK world does not understand upside-down (an...
by coppelia
18 Apr 2024, 14:00
Forum: General questions
Topic: What is the correct way to read applied external force on a tool?
Replies: 1
Views: 73

Re: What is the correct way to read applied external force on a tool?

Hello,

go with sim.getContactInfo. You'll have to correctly parse and filter out forces: if you need to react to those forces, do it in dynamics callback function, since that will be called more frequently than a regular callback function.

Cheers
by coppelia
18 Apr 2024, 13:56
Forum: General questions
Topic: How to Handle Floating Base Issues in Mujoco with a Robotic Arm?
Replies: 4
Views: 102

Re: How to Handle Floating Base Issues in Mujoco with a Robotic Arm?

Hello, indeed, something is strange at first sight... I can't put my finger on it. Upside-down causes the joint controller to behave strangely, while bottom-up, things look relatively ok. This is not the reason, but make sure to adjust the 'armature' MuJoCo parameter somewhat to the upside (in gener...