Search found 1016 matches

by fferri
27 Dec 2023, 11:32
Forum: General questions
Topic: URDF API
Replies: 3
Views: 17262

Re: URDF API

To load a plugin:

Code: Select all

simURDF = require('simURDF')
by fferri
27 Dec 2023, 11:25
Forum: General questions
Topic: How Mecanum Wheels work in CoppeliaSim
Replies: 1
Views: 15673

Re: How Mecanum Wheels work in CoppeliaSim

Hi, YouBot's wheel are not implemented the way they look (i.e. by several free spinning rollers around a wheel frame). Instead those are implemented with a trick that allows better performance and stability. You can get a more detailed explanation of CoppeliaSIm YouBot's model wheels from @coppelia ...
by fferri
19 Dec 2023, 09:33
Forum: General questions
Topic: Setting up Coppeliasim for Mac
Replies: 5
Views: 47702

Re: Setting up Coppeliasim for Mac

You can try this: in a terminal, run: which python3 it will tell you the full path to python3. Copy that path, and paste it as the value for the setting 'defaultPython' in the user settings file (~/.CoppeliaSim/usrset.txt). Next time you start CoppeliaSim, it should use the same python interpreter t...
by fferri
18 Dec 2023, 14:25
Forum: General questions
Topic: How to apply joint configuration at once
Replies: 6
Views: 23543

Re: How to apply joint configuration at once

You should first set all joints' angles, then call simIK.handleGroup.

E.g.:

Code: Select all

for i = 1, #simJoints do
    sim.setJointPosition(simJoints[i], jointPos[i])
end
local result, flags, prec = simIK.handleGroup(ikEnv, ikGroup_parallel, opts)
by fferri
18 Dec 2023, 14:21
Forum: General questions
Topic: Error using subscript Subscript arguments for SUBSREF and SUBSASGN cannot be empty.
Replies: 3
Views: 31205

Re: Error using subscript Subscript arguments for SUBSREF and SUBSASGN cannot be empty.

baojw wrote: 18 Dec 2023, 06:38 Error in trainDDPGWT4 (line 122)
experience = sim(env,agent,simOptions);
What's that?

sim is a name used in the RemoteAPIClient lib.

If that is also the name of a variable in your script, you should use a different name.
by fferri
12 Dec 2023, 14:40
Forum: General questions
Topic: keyboard control
Replies: 3
Views: 26295

Re: keyboard control

Keyboard input is not supported by CoppeliaSim nor by the UI plugin. This is mainly motivated by the fact that with graphical user interfaces, the ability to receive keyboard events depends on which widget has the focus and other factors. There is however one widget in simUI that can receive keyPres...
by fferri
10 Dec 2023, 00:18
Forum: General questions
Topic: Any documentation for customDataBlock "VEL"
Replies: 1
Views: 13422

Re: Any documentation for customDataBlock "VEL"

Custom data blocks is one of the many ways of communication between scripts . Nor the names of the data blocks nor the field names used are standardized by any mean, i.e. it is up to the model developer to decide the programming interface to control the model. Normally the model script contains comm...
by fferri
04 Dec 2023, 09:41
Forum: General questions
Topic: How do I use ompl path planning in copplia
Replies: 2
Views: 15699

Re: How do I use ompl path planning in copplia

For an introduction to motion planning see path/motion planning, and scene scenes/simpleManipulatorPathPlanning.ttt.
by fferri
01 Dec 2023, 11:45
Forum: Bug reports
Topic: Proxy option from sim.getObject does not work
Replies: 2
Views: 18481

Re: Proxy option from sim.getObject does not work

An object path starting with a '/' is an absolute path, so it works in the same way from any object. Passing the proxy option doesn't make sense with an absolute path (has no effect). A proxy option makes sense only with a relative path, e.g.: -- get 'gripper' object found in this tree: gripper = si...
by fferri
27 Nov 2023, 12:28
Forum: General questions
Topic: Importing Cutom Planners into simOMPL and simOMPL Path Planning in Real Time
Replies: 1
Views: 6470

Re: Importing Cutom Planners into simOMPL and simOMPL Path Planning in Real Time

That RRTx repository you mention is not using OMPL python bindings, so you cannot use it as it is. To add a planner to OMPL you have to implement the ompl::base::Planner C++ interface (see this page for details), and expose it to simOMPL like explained in this post . Alternative use OMPL Python bind...