Search found 12 matches

by IanCol
16 Nov 2017, 17:36
Forum: General questions
Topic: Avoiding errors from API functions
Replies: 2
Views: 50

Re: Avoiding errors from API functions

Awesome thanks!
by IanCol
15 Oct 2017, 02:04
Forum: General questions
Topic: Avoiding errors from API functions
Replies: 2
Views: 50

Avoiding errors from API functions

Hi There, I want to test to see if an object exists in the scene with a given name. The only way I can think to do this is via: simGetObjectHandle(object_name) But if the object doesn't exist, lua fails and halts execution of the script. When writing a C++ plugin, it was a common strategy of mine to...
by IanCol
12 Oct 2017, 21:39
Forum: General questions
Topic: Interfacing with a custom Vehicle Dynamics Model (VDM)
Replies: 2
Views: 95

Re: Interfacing with a custom Vehicle Dynamics Model (VDM)

Thanks for the fast reply!

Currently our plan is to go with option 2 because it also gives us the option to use other simulators in the future if we wish.
(and because option 1 is infeasible as you confirmed :D )

Thanks!
Ian
by IanCol
06 Oct 2017, 01:45
Forum: General questions
Topic: Interfacing with a custom Vehicle Dynamics Model (VDM)
Replies: 2
Views: 95

Interfacing with a custom Vehicle Dynamics Model (VDM)

Hi There, A partner research group has developed a detailed VDM of a car. Is it possible to integrate this VDM into V-rep? I see two ways to approach this: 1. Get the V-Rep physics engine to solve the set of ODEs (Ordinary Differential Equations) that describe the motion of the vehicle at each time ...
by IanCol
23 Mar 2017, 23:42
Forum: Bug reports
Topic: Trouble running V-REP headless
Replies: 14
Views: 1393

Trouble running V-REP headless

Hi There, I've installed Ubuntu 16.04 and the latest version of V-REP on a desktop computer that we plan to use as a server. I am trying to get V-REP to run headless so that we can ssh in and run headless simulations. I can get it to run headless if I am logged in locally, but nothing will work over...
by IanCol
21 Nov 2016, 19:27
Forum: General questions
Topic: Applying a simple texture to a plane
Replies: 1
Views: 442

Applying a simple texture to a plane

Hi There, I am using the texture load dialogue to apply a rectangular texture to a rectangular plane. Both the plane and the texture have the same aspect ratio. When I load the texture I choose not to scale it because I want to maintain the high quality of the image. The problem is that when the ima...
by IanCol
14 Oct 2016, 03:25
Forum: Bug reports
Topic: simSetOrientation doesn't seem to work correctly
Replies: 2
Views: 582

Re: simSetOrientation doesn't seem to work correctly

wow, can't believe I didn't try that! guess I shouldn't be debugging late into the night :D

It is all in radians indeed. May I request that someone updates the documentation though?
Both simGetObjectOrientation and simSetObjectOrientation don't mention anything about the units used.

Thanks!
Ian
by IanCol
13 Oct 2016, 05:50
Forum: Bug reports
Topic: simSetOrientation doesn't seem to work correctly
Replies: 2
Views: 582

simSetOrientation doesn't seem to work correctly

Hi There, I am writing a plugin that sets up a scene before starting a simulation. In order to set up an object I call simSetObjectOrientation and then simSetObjectPosition right after. The object always gets placed in the exact position I specify, but the orientation does not seem to work. I pass i...
by IanCol
31 Aug 2016, 06:59
Forum: General questions
Topic: Can a plugin unload itself?
Replies: 2
Views: 408

Re: Can a plugin unload itself?

Thanks for getting back to me! I actually ended up simply returning 0 during the v_repStart plugin procedure. I noticed that the v_repExtRosInterface plugin does this if a roscore is not running. So I simply check for all the required conditions during the v_repStart function and if any are not met,...
by IanCol
23 Aug 2016, 18:14
Forum: General questions
Topic: Can a plugin unload itself?
Replies: 2
Views: 408

Can a plugin unload itself?

I am trying to get a plugin to unload itself upon launch if it doesn't see a specific custom argument (-gXXX). The plugin automatically controls a lot of aspects of the simulation so I don't want it to load unless specifically desired. My initial plan was to call simUnloadModule() within the v_repSt...