Registration manage

Typically: "How do I... ", "How can I... " questions
Post Reply
robodav
Posts: 2
Joined: 19 Nov 2018, 17:21

Registration manage

Post by robodav » 27 Nov 2018, 11:06

Good morning to everyone. i'm not an expert of vrep, so i need to some help to manage the data registration from a simulation.
I'm working with external API, i succeed to save the data of a simulation thanks to csv file, and what i want to do is control by keyboard (for example with a button) when start to registrate data, and when finish, in independent way than start/stop of simulation.
Someone can help me? Which commands should i use?

coppelia
Site Admin
Posts: 6867
Joined: 14 Dec 2012, 00:25

Re: Registration manage

Post by coppelia » 27 Nov 2018, 11:23

Hello,

have a look how the Model examples/simple Ackermann steering.ttm intercepts key pressed.

Cheers

robodav
Posts: 2
Joined: 19 Nov 2018, 17:21

Re: Registration manage

Post by robodav » 03 Dec 2018, 12:20

My problem is to measure the execution time of a task during simulation, and i want to decide when start and stop this timing. i want to realize this pressing a key of the keyboard.

coppelia
Site Admin
Posts: 6867
Joined: 14 Dec 2012, 00:25

Re: Registration manage

Post by coppelia » 05 Dec 2018, 11:05

Then have a look at the example that I mentioned in my previous message: it intercepts keys during simulation. Then you can use sim.getSystemTimeInMs.

Cheers

Post Reply