Search found 5811 matches

by coppelia
20 Jun 2017, 21:31
Forum: General questions
Topic: simxGetCollisionHandle allways returns zero
Replies: 4
Views: 41

Re: simxGetCollisionHandle allways returns zero

Hello,

can you show me the code where you are trying to read the collision handle from the remote API client?

Cheers
by coppelia
20 Jun 2017, 21:29
Forum: General questions
Topic: Help with Inverse Kinematics
Replies: 4
Views: 40

Re: Help with Inverse Kinematics

Building a purely kinematic model will be easier. So you do not need to turn every shape into a dynamic and respondable shape. Just leave the shapes as static and non-respondable. Then, try to switch for your IK group to a damped resolution method. You will see that the end-effector will follow the ...
by coppelia
20 Jun 2017, 21:19
Forum: General questions
Topic: Simulink and V-REP
Replies: 28
Views: 16150

Re: Simulink and V-REP

The shared memory code you are referring to wasn't developed by us, so we do not really check for compatibility on the way. The next version of the remote API (V-REP 3.4.1) on the other hand will also support shared memory (instead of socket communication). This modification is courtesy of Benjamin ...
by coppelia
20 Jun 2017, 21:16
Forum: General questions
Topic: Vrep Vision Sensor cameraInfo
Replies: 6
Views: 65

Re: Vrep Vision Sensor cameraInfo

Yes, that's the scene I meant. So make first sure that scene works. If it works, then it means the RosInterface plugin was correctly compiled/loaded. Publishing an image from the vision sensor is basically: activeVisionSensor=sim.getObjectHandle('Vision_sensor') pub=simROS.advertise('/image', 'senso...
by coppelia
18 Jun 2017, 13:17
Forum: General questions
Topic: How to use simMoveToObject function
Replies: 3
Views: 46

Re: How to use simMoveToObject function

You are moving the tip dummy. This is not correct. You should move the target dummy, e.g.:

Code: Select all

        simMoveToObject(ikModeTargetDummy,cube,3,nil,0.02,0.02)

Cheers
by coppelia
18 Jun 2017, 13:11
Forum: General questions
Topic: Quadricopter Path Planning
Replies: 1
Views: 24

Re: Quadricopter Path Planning

Hello, before trying to do something that is quite complicated, try to start small, and experiment a little bit with the various functionalities. e.g. you could have a simple cube in a scene, that needs to travel from its current position to a target position, while avoiding obstacles. At the same t...
by coppelia
18 Jun 2017, 13:07
Forum: General questions
Topic: Code for joints
Replies: 1
Views: 21

Re: Code for joints

Hello,

the easiest would be to added a threaded child script to an object, then do something like:

Code: Select all

local h=simGetObjectHandle('myJoint')
simWait(10,true)

simSetJointPosition(h,math.pi)
-- or: simSetJointTargetPosition(h,math.pi)


Or something similar.

Cheers
by coppelia
18 Jun 2017, 13:04
Forum: General questions
Topic: Help with Inverse Kinematics
Replies: 4
Views: 40

Re: Help with Inverse Kinematics

Hello,

you can share a scene via dropbox or similar. At the same time, have a look at the demo scene scenes/forwardAndInverseKinematics1.ttt, which illustrates a similar robot, once in FK and once in IK mode.

Cheers
by coppelia
18 Jun 2017, 13:01
Forum: General questions
Topic: Problem whit IK when explicit handling
Replies: 1
Views: 24

Re: Problem whit IK when explicit handling

Hello, you should not use the built-in path/motion planning functionality anymore, since it is over-complicated and not flexible enough. Instead, use the path/motion planning functionality from the OMPL plugin . There are also several demo scenes that use the OMPL functionality (e.g. scenes/motionPl...
by coppelia
18 Jun 2017, 12:54
Forum: General questions
Topic: Setting a light color via remote-binding in python
Replies: 1
Views: 20

Re: Setting a light color via remote-binding in python

Hello Shady, the API functions you can use from a remote API client are quite limited. If, like in your case, you can't find the equivalent of a regular API command , then you can always call simxCallScriptFunction in your remote API client, and then call simSetShapeColor inside of that script funct...

Go to advanced search