Search found 980 matches

by fferri
19 Nov 2019, 09:57
Forum: General questions
Topic: How can I use joint to realize a bend movement ?
Replies: 6
Views: 862

Re: How can I use joint to realize a bend movement ?

Walking Bill.ttm moves only by pure forward kinematics, using sim.setObjectPosition and sim.setJointPosition.
by fferri
18 Nov 2019, 15:04
Forum: General questions
Topic: How can I use joint to realize a bend movement ?
Replies: 6
Views: 862

Re: How can I use joint to realize a bend movement ?

Why would you want to manually move a joint in IK mode?
by fferri
18 Nov 2019, 12:02
Forum: General questions
Topic: Pick & Place using Vision Sensor
Replies: 1
Views: 670

Re: Pick & Place using Vision Sensor

Hello, imageProcessingDemo.ttt should give you an overview of the various ways to manipulate images. You can extend the Image plugin to expose more OpenCV functions or you can also write your own plugin to add more image-manipulating functions. blobDetectionWithPickAndPlace.ttt is a practical exampl...
by fferri
18 Nov 2019, 11:53
Forum: General questions
Topic: How can I use joint to realize a bend movement ?
Replies: 6
Views: 862

Re: How can I use joint to realize a bend movement ?

Hello,

if the joint in motor mode you should use sim.setJointTargetPosition rather than sim.setJointPosition.
by fferri
18 Nov 2019, 11:50
Forum: General questions
Topic: Khepera K3 model, how is the UI done?
Replies: 3
Views: 967

Re: Khepera K3 model, how is the UI done?

How is this done? I want to do something similar for models of my own but all I can see within the khepera's script is a reference to a UI object named "K3_stateVisualization". I can't see that object in the hieracrhy anywhere. Those old-style UIs are deprecated, because they don't offer ...
by fferri
14 Nov 2019, 18:45
Forum: General questions
Topic: How can i use the SimulationTime for calculation ?
Replies: 1
Views: 444

Re: How can i use the SimulationTime for calculation ?

time_1 is nil because the condition distance_1 < 0.9 is false.

Fix the logic of your program. For example check that both variables are not nil:

Code: Select all

if time_1 ~= nil and time_2 ~= nil and time_1 - time_2 > 0 then
    sim.setStringSignal("SafetyStop","1")
end
by fferri
12 Nov 2019, 18:25
Forum: Bug reports
Topic: sim.setJointPosition is not working inside the callback function of subscriber in ROS.Please help me
Replies: 4
Views: 4247

Re: sim.setJointPosition is not working inside the callback function of subscriber in ROS.Please help me

I tested sim.setJointPosition and it works fine also in a ROS callback.

If your joint doesn't move, you have research the cause in the joint mode and the resulting behaviour. Make sure to read and understand Joint types and operation.
by fferri
12 Nov 2019, 08:34
Forum: General questions
Topic: sim.setShapecolor,
Replies: 2
Views: 793

Re: sim.setShapecolor,

You can add a drawing object with sim.addDrawingObject and fill with items via sim.addDrawingObjectItem as the robot passes around.

Check also what types of drawing objects you can add.
by fferri
31 Oct 2019, 08:58
Forum: General questions
Topic: CodeEditor loading problem
Replies: 4
Views: 1225

Re: CodeEditor loading problem

zdenoB wrote: 31 Oct 2019, 08:01 ldd "$dirname/libv_rep.so" #replace libv_rep.so with the library that is having difficulties to load

but I don't know the name of Library behind CodeEditor.
libv_repExtCodeEditor.so
by fferri
31 Oct 2019, 08:46
Forum: General questions
Topic: How to display the planned path?
Replies: 1
Views: 576

Re: How to display the planned path?

It can be done at least in two ways: