Search found 736 matches

by fferri
18 Jun 2021, 10:26
Forum: General questions
Topic: Lua Script input and output
Replies: 2
Views: 598

Re: Lua Script input and output

If you mean to read standard input , you can do so in a plugin, but it is not recommended as it is not a modular solution (what if another plugin reads from stdin as well?). If you need input from the user, you can use the UI plugin . If you need input/output with external applications, you can read...
by fferri
09 Jun 2021, 07:17
Forum: General questions
Topic: Display text information in scene
Replies: 4
Views: 3316

Re: Display information in scene

pwyq wrote:
09 Jun 2021, 01:15
I found <text-browser> for simUI.create(). I believe I can update the text by simUI.setText, how should I found the widget ID thou?
if your UI XML is:

Code: Select all

<ui>
    <text-browser id="1" />
</ui>
then id is 1 :-)
by fferri
08 Jun 2021, 08:40
Forum: General questions
Topic: Enable and disable the dynamics of a link
Replies: 1
Views: 2563

Re: Enable and disable the dynamics of a link

I believe the way to set a shape static/dynamic is setting the sim.shapeintparam_static parameter (with sim.setObjectInt32Parameter/sim.setObjectInt32Param).

You still need to call sim.resetDynamicObject afterwards, where needed.
by fferri
08 Jun 2021, 08:34
Forum: General questions
Topic: required python version of simExtROS is different from default in ROS melodic
Replies: 4
Views: 3006

Re: required python version of simExtROS is different from default in ROS melodic

Hi, I tried to load ros interface plugin, so I git clone and build [simExtROS](https://github.com/CoppeliaRobotics/simExtROS), but have several problems and errors bother me. Here are my environments: - system: ubuntu 18.04 - ROS: melodic - CoppeliaSim: V4.2.0 **Question 1:** _can build with python...
by fferri
31 May 2021, 08:41
Forum: General questions
Topic: setObject moving different than commanded
Replies: 2
Views: 2853

Re: setObject moving different than commanded

Don't know about your complete code or your simulation scene. This code works for me: function left() sim.setObjectOrientation(handle,handle,{0,0,math.pi/8}) end function forward() sim.setObjectPosition(handle,handle,{0.05,0,0}) end function right() sim.setObjectOrientation(handle,handle,{0,0,-math....
by fferri
31 May 2021, 08:30
Forum: General questions
Topic: question about getting Joystick data and writing it into the file
Replies: 1
Views: 2747

Re: question about getting Joystick data and writing it into the file

Hi,

your code is not complete (e.g. function current_moving is not called from anywhere).
by fferri
28 May 2021, 13:05
Forum: General questions
Topic: How to use OMPL
Replies: 2
Views: 2301

Re: How to use OMPL

Hi,

this is a good starting point:

Path/motion planning
by fferri
10 May 2021, 14:33
Forum: General questions
Topic: Where is my calculation module?
Replies: 2
Views: 2735

Re: Where is my calculation module?

Third party videos often refer to old versions.

According to the Inverse Kinematic tutorial of the latest release, there is no such IK calculation module UI. Instead, IK is set up by adding a few lines of Lua code.
by fferri
29 Apr 2021, 12:09
Forum: General questions
Topic: Vrep collada file to moveit
Replies: 6
Views: 2505

Re: Vrep collada file to moveit

CoppeliaSim has an URDF importer and an SDF importer, but no exporters.

You'll have to write your own exporter add-on.

The simAddOnMinimalistic exporter.lua add-on might be a good starting point, and here is a tutorial on the URDF format.