Giter VIP home page Giter VIP logo

douthwja01 / openmas Goto Github PK

View Code? Open in Web Editor NEW
120.0 8.0 46.0 814.72 MB

OpenMAS is an open source multi-agent simulator based in Matlab for the simulation of decentralized intelligent systems defined by arbitrary behaviours and dynamics.

License: MIT License

MATLAB 88.49% HTML 11.26% C 0.25%
robotics-simulation robotics drone intelligent-systems multi-agent-systems multi-agent-modeling modeling control-systems simulation-environment

openmas's People

Contributors

douthwja01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openmas's Issues

Function `OMAS_getTrajectoryData_mex` not found - example_setup.m fails

Hi @douthwja01 ,

First of all thanks for sharing this toolbox! It really look interesting from the Readme file and I was going to try it out on my machine, but unfortunately the example example_setup.m fails and returns with the following error:

Warning: [OMAS-error] A problem occurred generating the output figures. 
> In OMAS_analysis (line 99)
  In OMAS_initialise (line 136)
  In example_setup (line 157) 
Warning: Undefined function 'OMAS_getTrajectoryData_mex' for input arguments of type 'uint16'. 
> In OMAS_analysis (line 100)
  In OMAS_initialise (line 136)
  In example_setup (line 157) 

Warning: [ERROR] A problem occurred interpreting the output data 
> In OMAS_initialise (line 138)
  In example_setup (line 157) 
Undefined function or variable 'OMAS_getTrajectoryData_mex'.

Error in OMAS_figureProperties>GetTrajectoryAxisProperties (line 120)
    [objectStateData] = OMAS_getTrajectoryData_mex(DATA.globalTrajectories,...

Error in OMAS_figureProperties (line 60)
[stateMinimums,stateMaximums] = GetTrajectoryAxisProperties(DATA);

Error in OMAS_figureGenerator (line 17)
[DATA.figureProperties] = OMAS_figureProperties(SIM,DATA);

Error in OMAS_analysis (line 97)
        [plotnum] = OMAS_figureGenerator(META,OBJECTS,DATA,plotnum,figureList(figNum)); % Jump to the figure index

Error in OMAS_initialise (line 136)
    [DATA] = OMAS_analysis(META,objectIndex,EVENTS,DATA);                  % Jump to external analysis program

Error in example_setup (line 157)
[DATA,META] = OMAS_initialise('objects',objectIndex,...

So it looks like that the MEX file OMAS_getTrajectoryData_mex is present in the environment folder, but I can't really understand why the plots are not shown. I'm running the example on Matlab 2018b.

Thanks for any help you can provide.
Regards,

Marco

Unrecognized method, property, or field 'SetRadius' for class 'agent_example'.

>> example_setup
[SETUP]	Initialising example script.
[SETUP]	Assigning agent definitions:
objectcount: 1	name: alpha001	type: agent_example
objectcount: 2	name: beta001	type: agent_example
Unrecognized method, property, or field 'SetRadius' for class 'agent_example'.

Error in agent_example (line 50)
            obj = obj.SetRadius(0.5);

Error in example_setup (line 60)
    agentIndex{index} = agent_example('radius',sim_agentRadius);
t

Using of interval avoidance met some error

Hello Douthwaite, sorry to bother you, i met some error when I use the code "agentIndex{index} = agent_interval(); ", it is shown below:

Error in modpi2>modpi2fast (line 74)
x = ( x + (-k)*INTLAB_STDFCTS_PI.PI2_1 ) + ... % exact for abs(x)<=2^27
Error in modpi2 (line 43)
[ yinf , ysup , s , index ] = modpi2fast(x);
Error in intval/sin (line 47)
[ xinfinf , xinfsup , Sinf ] = modpi2(x.inf(:));
Error in agent.GetRadiusFromAngularWidth (line 504)
r = (sin(alpha/2)/(1-sin(alpha/2)))*d;
Error in agent_interval/SensorModel (line 172)
radiusBox = this.GetRadiusFromAngularWidth(rangeBox,alphaBox);
Error in agent/GetAgentUpdate (line 157)
sensedobject = this.SensorModel(ENV.dt,observedobjects(entry));
Error in agent_interval/main (line 65)
[this,obstacleSet,agentSet] = this.GetAgentUpdate(ENV,varargin{1});
Error in OMAS_process>UpdateObjects (line 580)
referenceObject = referenceObject.main(ENV,observationPacket); % Hand the current sim TIME object and complete observation packet
Error in OMAS_process>ProcessGlobalTimeSeries (line 138)
[objectIndex{ID1},objectEVENTS] = UpdateObjects(META,objectIndex,objectIndex{ID1}); % Update objectIndex snapshot with new META data
Error in OMAS_process (line 25)
[META,objectIndex,DATA,EVENTS] = ProcessGlobalTimeSeries(META,objectIndex,DATA,EVENTS);
Error in OMAS_initialise (line 130)
[DATA,META,EVENTS,objectIndex] = OMAS_process(META,objectIndex);
Error in example_setup (line 160)
[DATA,META] = OMAS_initialise('objects',objectIndex,...

would you mind doing me a favor to help me solve this problem, I will be really appreciated for any help from you, thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.