Search found 10 matches

by TrimItOut
11 May 2021, 16:59
Forum: General questions
Topic: How to start and stop the simulator externally
Replies: 2
Views: 3073

Re: How to start and stop the simulator externally

Exactly what I was looking for!

For anyone else looking for a similar solution I managed to implement the above functionality using an addon.

Documentation here: https://www.coppeliarobotics.com/helpFi ... addOns.htm

Thank you
by TrimItOut
10 May 2021, 19:54
Forum: General questions
Topic: How to start and stop the simulator externally
Replies: 2
Views: 3073

How to start and stop the simulator externally

Hi, I am trying to run a set number of trials of a simulation that I have created. Once the robot reaches the goal it stops the simulation so I am trying to create a piece of code that then starts the simulation again until the required number of trials has been reached. I have tried to use the foll...
by TrimItOut
02 Apr 2021, 22:42
Forum: General questions
Topic: OMPL Path Structure
Replies: 5
Views: 1820

Re: OMPL Path Structure

Perfect!

Cheers
by TrimItOut
02 Apr 2021, 12:35
Forum: General questions
Topic: OMPL Path Structure
Replies: 5
Views: 1820

Re: OMPL Path Structure

Hi, I have a question regarding the θ returned by the dubin’s state space. As this is an orientation in the (xy) plane how would I get it into a format so that it can be used to set an object orientation using sim.setObjectOrientation? As sim.setObjectOrientation is expecting a table of 3 Euler angl...
by TrimItOut
02 Apr 2021, 12:11
Forum: General questions
Topic: Handling OMPL exceptions
Replies: 5
Views: 1549

Re: Handling OMPL exceptions

That's perfect, exactly what I was looking for!

Cheers
by TrimItOut
01 Apr 2021, 19:14
Forum: General questions
Topic: Handling OMPL exceptions
Replies: 5
Views: 1549

Re: Handling OMPL exceptions

However, this is a workaround to solve a problem that possibly has an easier solution rather than handling the error. Ultimately I want to check whether the start state and goal state provided to OMPL are valid (collision free) before I use simOMPL.compute so that it doesn't throw the error mentione...
by TrimItOut
01 Apr 2021, 18:53
Forum: General questions
Topic: Handling OMPL exceptions
Replies: 5
Views: 1549

Re: Handling OMPL exceptions

Hi, Thanks for your response and your code example , this is exactly along the lines of what I'm looking for. Would there be any way to handle this error if the function being tried (generateAnError in this case) has parameters and also returns a variable? e.g. if the function does NOT throw an erro...
by TrimItOut
30 Mar 2021, 18:12
Forum: General questions
Topic: Handling OMPL exceptions
Replies: 5
Views: 1549

Handling OMPL exceptions

Hi, I was wondering if it would be possible within the sim to handle errors from OMPL without them bringing the simulator to a halt. Here is an example of errors that I am trying to handle [simExtOMPL:warning] OMPL: e:\ompl-1.4.1-source\src\ompl\base\src\planner.cpp:310: RRTConnect: Skipping invalid...
by TrimItOut
09 Mar 2021, 16:20
Forum: General questions
Topic: OMPL Path Ignoring Collisions
Replies: 3
Views: 987

Re: OMPL Path Ignoring Collisions

Thanks for your response! I have changed the code so it is only calculating the path for the start_config_cylinder instead of the robot, which is what I somewhat intended. Modified code: initPos=sim.getObjectPosition(start_config_cylinder_handle,-1) initOrient=sim.getObjectOrientation(start_config_c...
by TrimItOut
02 Mar 2021, 17:34
Forum: General questions
Topic: OMPL Path Ignoring Collisions
Replies: 3
Views: 987

OMPL Path Ignoring Collisions

Hi, I am trying to generate an OMPL path and the path is successfully created but constantly ignores all objects in the scene with the resulting path not being collision free. I'm not entirely sure I am going about this the correct way though, I'm using the 3DoFHolonomicPathPlanning demo scene as re...