Search found 186 matches

by Eric
29 Nov 2014, 07:46
Forum: General questions
Topic: Automated Parking Garage
Replies: 10
Views: 3922

Re: Automated Parking Garage

hi... Not sure but, you don t seem to be stopping the the motion.... Also, if you are using a non threaded script, having a blocking while loop is not a good idea... it will block the simulation. Last thing... the positions will never be exactly the same so u d never stop as the condition dumPos~=fi...
by Eric
27 Nov 2014, 19:00
Forum: General questions
Topic: How to draw a circle
Replies: 1
Views: 900

Re: How to draw a circle

Hi You could do that: posC={0,0,0.1} r=0.5 pt={} pt[3]=posC[3] ptsize=0.005 local h=simAddDrawingObject(sim_drawing_spherepoints,ptsize,ptsize,-1,99999999,{0.1,0.9,0.1}) for i=0,360,ptsize*10 do pt[1]=posC[1]+r*math.cos(i*math.pi/180) pt[2]=posC[2]+r*math.sin(i*math.pi/180) simAddDrawingObjectItem(h...
by Eric
22 Nov 2014, 16:06
Forum: General questions
Topic: How to export a 2D-map?
Replies: 6
Views: 2216

Re: How to export a 2D-map?

hmmm print screen?

cheers Eric
by Eric
16 Nov 2014, 03:26
Forum: General questions
Topic: Unexpected fail in if loop
Replies: 6
Views: 1539

Re: Unexpected fail in if loop

There are no command implemented in the plugin to get the position of the arm apparently.. However you still can get the position of the joint named "K3_gripper_armJoint1" and compute the position of the arm. --in the init phase -- get the joint handle gripperJointHandle=simGetObjectHandle("K3_gripp...
by Eric
15 Nov 2014, 16:02
Forum: General questions
Topic: Unexpected fail in if loop
Replies: 6
Views: 1539

Re: Unexpected fail in if loop

No worries.... i ve been having a similar problem recently

Cheers
by Eric
15 Nov 2014, 07:37
Forum: General questions
Topic: Unexpected fail in if loop
Replies: 6
Views: 1539

Re: Unexpected fail in if loop

Hi Not sure that s the problem but try to substitute your code by the following line if o~=0 and c==0 and ((simExtK3_getGripperProxSensor(0)<0.015)or(simExtK3_getGripperProxSensor(1)<0.015)) then false and false and false or true returns true, while false and false and (false or true) returns false ...
by Eric
09 Nov 2014, 17:38
Forum: General questions
Topic: New to V-rep
Replies: 9
Views: 3269

Re: New to V-rep

Hi That s a very good advise... I would recommend you to first do spend time doing the bubbleRob and line following bubbleRob tutorials and be sure to understand the lua code, systematically checking the definition of the "sim" instruction in the reference API. Then you should try to study the scene...
by Eric
07 Nov 2014, 03:56
Forum: General questions
Topic: Robot explodes when setting position
Replies: 6
Views: 4049

Re: Robot explodes when setting position

hi From an old post: simSetThreadAutomaticSwitch(false) --moving the dynamic object t={robotHandle} while (#t~=0) do h=t[1] simResetDynamicObject(h) table.remove(t,1) ind=0 child=simGetObjectChild(h,ind) while (child~=-1) do table.insert(t,child) ind=ind+1 child=simGetObjectChild(h,ind) end end --mo...
by Eric
14 Oct 2014, 17:57
Forum: General questions
Topic: How to check if sim is paused/running/stopped (remote API)
Replies: 3
Views: 3458

Re: How to check if sim is paused/running/stopped (remote AP

hi

have a look at simxGetInMessageInfo function, especially the simx_headeroffset_server_state

Cheers

Eric
by Eric
10 Oct 2014, 04:40
Forum: Videos around V-REP
Topic: Odometry and compass odometry pose estimate comparison
Replies: 4
Views: 4065

Odometry and compass odometry pose estimate comparison

http://youtu.be/wLBwvDqBcuA?list=UU-OW0N_n-rXwY7pQNnoK4Lw This video illustrates two dead reckoning pose estimations. The blue robot is a differential drive robot (i.e. the ground truth). It is dynamically simulated so that wheels can slip. The Red robot is a representation of the pose estimate base...