Search found 6278 matches

by coppelia
22 Jan 2018, 15:10
Forum: General questions
Topic: Enabling spring-damper mode through regular API?
Replies: 8
Views: 431

Re: Enabling spring-damper mode through regular API?

Do not try to change the source code yet, since there should be the beta version of next release out this week. And joint control callbacks will still be supported, but in a different way (simpler). Then we can have a look at your problem again.

Cheers
by coppelia
22 Jan 2018, 09:58
Forum: General questions
Topic: simxLoadScene error
Replies: 6
Views: 73

Re: simxLoadScene error

Have again a look at your code: don't you see a difference between below two?

Code: Select all

res=vrep.simxLoadScene=(clientID,"C:/Users/mahsa/Desktop/robot/asli.ttt",0,vrep.simx_opmode_blocking)
res=vrep.simxLoadScene(clientID,"c:/Python27/6DoFHolonomicPathPlanning.ttt",0,vrep.simx_opmode_blocking)
Cheers
by coppelia
22 Jan 2018, 09:56
Forum: General questions
Topic: Slotting pin into hole only works when I scale up by 4
Replies: 3
Views: 40

Re: Slotting pin into hole only works when I scale up by 4

This is a difficult task. But depending on the geometry you need to generate, you can programmatically generate pure shapes and position/orient them appropriately. For instance, for a hole, simple generate cuboid shapes, place them with an offset to the hole center, and rotate them until you have th...
by coppelia
22 Jan 2018, 09:51
Forum: General questions
Topic: What slows V-REP most?
Replies: 3
Views: 42

Re: What slows V-REP most?

Yes, you can use the embedded video recorder for this. You will however have to compute yourself the video recorder settings in order to obtain a real-time video.

Cheers
by coppelia
22 Jan 2018, 09:47
Forum: General questions
Topic: Simple bar rotating
Replies: 1
Views: 11

Re: Simple bar rotating

Hello, this is directly dependent on the physics engine you use. You can notice that with the Newton engine, the oscillation amplitude is growing. Each physics engine will use different parameters and perform different calculations. This is sometimes difficult to influence. You will have to look at ...
by coppelia
22 Jan 2018, 09:36
Forum: General questions
Topic: Whi is my Ik model shaking when I use undamped IK model
Replies: 1
Views: 11

Re: Whi is my Ik model shaking when I use undamped IK model

Hello, you have two IK groups active: an undamped one, followed by a damped one. The undamped IK group will make the manipulator go crazy, since you have specific 6 constraints (x/y/z and orientation), but your mechanism has only 4 DoFs. And your undamped has a too high damping to correct for the la...
by coppelia
22 Jan 2018, 09:21
Forum: General questions
Topic: Enabling spring-damper mode through regular API?
Replies: 8
Views: 431

Re: Enabling spring-damper mode through regular API?

Hello, use the following example script-damper: Models/examples/spring-damper.ttm Attach a non-threaded child script to the joint with following content: if (sim_call_type==sim_childscriptcall_initialization) then local joint_handle=simGetObjectAssociatedWithScript(sim_handle_self) simSetObjectFloat...
by coppelia
22 Jan 2018, 09:11
Forum: General questions
Topic: Subscribing to a ROS Topic
Replies: 2
Views: 22

Re: Subscribing to a ROS Topic

Hello, first of all, make sure that you do no constantly enable a subscriber. The code you mention, i.e.: function subscriber_callback(msg) simAddStatusbarMessage(string.format("Px:%f Py:%f Pz: %f", msg.x, msg.y, msg.z)) end sup=simExtRosInterface_subscribe('/neck_joint','geometry_msgs/Point','subsc...
by coppelia
22 Jan 2018, 08:47
Forum: General questions
Topic: Hokuyo communication with Matlab
Replies: 10
Views: 1823

Re: Hokuyo communication with Matlab

The easiest would be to prepare a script function on the V-REP side, that your Matlab client can call via simxCallScriptFunction . Inside of that function, you can do whatever you wish. But the first thing you should do is try to understand what the script attached to that sensor does and how it ope...
by coppelia
22 Jan 2018, 08:43
Forum: General questions
Topic: Can I add a sliding module to the line to simulate the ups and downs of the chest when breathing?
Replies: 3
Views: 48

Re: Can I add a sliding module to the line to simulate the ups and downs of the chest when breathing?

I am still struggling in understanding your final goal. V-REP will not magically make things work or appear as realistic. It really depends on the type of simulation. V-REP can perform inverse kinematics for you. Or you can use the physics engine to perform a rigid-body simulation. Other than that, ...