Search found 1004 matches

by fferri
06 Mar 2024, 20:28
Forum: General questions
Topic: How to obtain handles from objects in scene in plugin
Replies: 2
Views: 76

Re: How to obtain handles from objects in scene in plugin

There's a regular API for C/C++ plugins as well.

If in embedded scripts you would use sim.getObject to retrieve the handle of an object, in a plugin you would use simGetObject: https://manual.coppeliarobotics.com/en/ ... ct_cpp.htm
by fferri
04 Mar 2024, 10:12
Forum: General questions
Topic: graphs
Replies: 4
Views: 309

Re: graphs

It is highly recommended to use the ZeroMQ remote API, since it is much easier and flexible. Additionally, you'll have access to many more API functions, than with the legacy remote API.

The legacy remote API is not supported anymore since a long time.
by fferri
01 Mar 2024, 15:19
Forum: Bug reports
Topic: coppeliaSim.sh not working
Replies: 2
Views: 329

Re: coppeliaSim.sh not working

If you search old forum posts you should find someone that eventually succeeded in running under WSL....
by fferri
01 Mar 2024, 14:14
Forum: General questions
Topic: graphs
Replies: 4
Views: 309

Re: graphs

You can call any function defined in a child script from external programs (e.g. remote API clients). So you can have a Lua function in a child script to make several readings and return a table of values, e.g.: sim = require('sim') function sysCall_init() sensorHandle = sim.getObject('...') sensorD...
by fferri
01 Mar 2024, 14:10
Forum: General questions
Topic: Running Multiple Headless Simulation
Replies: 1
Views: 99

Re: Running Multiple Headless Simulation

If you don't use the WebSockets Remote API nor the WebSockets (simWS) plugin, you can safely ignore that error.

You can pass command line option -GwsRemoteApi.autoStart=false to disable the WebSockets Remote API Server if you don't want to see that error.
by fferri
29 Feb 2024, 18:13
Forum: General questions
Topic: Pointers on how to implement Teleop interface
Replies: 2
Views: 122

Re: Pointers on how to implement Teleop interface

Hi,

have you seen this topic https://forum.coppeliarobotics.com/view ... hp?p=40053 ?

For a better control on keyboard events (or any other type of input events) you may want to write a plugin, e.g. using Qt, SDL, etc.
by fferri
29 Feb 2024, 09:20
Forum: General questions
Topic: How to use sim.handleflag_resetforce ?
Replies: 2
Views: 110

Re: How to use sim.handleflag_resetforce ?

Code: Select all

sim.addForce(shapeHandle | sim.handleflag_resetforcetorque, pos, force)
by fferri
22 Feb 2024, 17:41
Forum: General questions
Topic: Gear Mechanism
Replies: 12
Views: 8848

Re: Gear Mechanism

scenes/gears.ttt
by fferri
21 Feb 2024, 12:26
Forum: General questions
Topic: ROS2 connection missing Float32MultiArray
Replies: 1
Views: 131

Re: ROS2 connection missing Float32MultiArray

$ export COPPELIASIM_ROOT_DIR=~/path/to/coppeliaSim/folder $ ulimit -s unlimited #otherwise compilation might freeze/crash $ colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release That is correct. Verify that the plugin file (libsimROS2.so) is installed to the correct location of co...
by fferri
21 Feb 2024, 11:28
Forum: General questions
Topic: Simulating Drone Lift Off
Replies: 1
Views: 118

Re: Simulating Drone Lift Off

That approach works fine for me. Once the gravity force has been balanced, it is sufficient a very tiny force to have an object lift off, considering you are applying that force constantly (i.e. on every step, in e.g. sysCall_actuation) local self = sim.getObject '.' local m = sim.getShapeMass(self)...