rpax / massis Goto Github PK
View Code? Open in Web Editor NEWMultiAgent System Simulation Framework for Indoor Scenarios
Home Page: http://www.massisframework.com/
MultiAgent System Simulation Framework for Indoor Scenarios
Home Page: http://www.massisframework.com/
Hi. Following with the tutorial I went into the edition of the MyHelloHighLevelController to get a random movement of the agent. However, after the edition of the script and running the SimulationWithUILauncher the agent does not move at all.
It looks like in my MyHelloHighLevelController script there are errors (Eclipse shows several redX, see picture).
Here it is the full script any way:
package tutorialfollower.myfirstmassisproject;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.massisframework.massis.model.agents.HighLevelController;
import com.massisframework.massis.model.agents.LowLevelAgent;
import com.massisframework.massis.model.building.SimRoom;
import com.massisframework.massis.model.location.Location;
import com.massisframework.massis.model.managers.movement.ApproachCallback;
import com.massisframework.massis.pathfinding.straightedge.FindPathResult.PathFinderErrorReason;
import com.massisframework.massis.model.agents.HighLevelController;
import com.massisframework.massis.model.agents.LowLevelAgent;
public class MyHelloHighLevelController extends HighLevelController {
private static final long serialVersionUID = 1L;
public MyHelloHighLevelController(LowLevelAgent agent, Map<String, String> metadata, String resourcesFolder) {
super(agent, metadata, resourcesFolder);
this.agent.setHighLevelData(this);
}
@Override
public void stop() {
/*
* Clean resources, threads...etc
*/
}
@Override
public void step() {
if (this.currentTarget == null) {
/* 1 */ SimRoom currentRoom = this.agent.getRoom();
/* 2 */ this.currentTarget = currentRoom.getRandomLoc();
}
ApproachCallback callback = new ApproachCallback() {
@Override
public void onTargetReached(LowLevelAgent agent) {
// Target has been reached.
}
@Override
public void onSucess(LowLevelAgent agent) {
// Everything ok. The agent has moved a little bit.
}
@Override
public void onPathFinderError(PathFinderErrorReason reason) {
// Error!
Logger.getLogger(MyHelloHighLevelController.class.getName())
.log(Level.SEVERE,
"Error when approaching to {0} Reason: {1}",
new Object[] { currentTarget, reason });
}
};
/* 3 */ this.agent.approachTo(this.currentTarget, callback);
}
Please, could you contact me ? , i am interesting to have further informations about your application.
We work with Sweet Home 3D.
My email is [email protected] , my phone number is 0033142786589.
Best regards
Pascal JEHAN
Hi, Mr. Rafael Pax
Hope you can help to make the functionality of dynamical opening and closing doors.
Thank you!
Hi Rafael (I am Rafael too). I saw your interesting project of Massis and I wanted to try it.
I am not a programmer. I am an architect. But your documentation and tutorial are very clear so I was easy to follow them.
I went through all the process to installation (JDK, Maven, Ant, Eclipse) and I had no problems. Then I followed the tutorial to create myfirstmassisproject. Once aIl the dependencies were downloaded I wanted to run EnvironmentEditor.java but it gives me errors:
First, a window shows a message saying:
Errors exist in required project(s):
myfirstmassisproject
Proceed with launch?
Then I do Proceed but nothing happens.
In the console a message says:
EnvironmentEditor [Java Application] C:\Program Files\Java\jre1.8.0_111\bin\javaw.exe(23Dec.,2016, 8:43:19 pm)
Error: Could not find or load main class tutorialfollower.myfirstmassisproject.EnvironmentEditor
In problems tab there are three errors messages:
Description Resource Path Location Type
Missing artifact com.sun:tools:jar:1.5 pom.xml /myfirstmassisproject line 2 Maven Dependency Problem
The container 'Maven Dependencies' references non existing library 'C:\Users\Rafael.m2\repository\com\sun\tools\1.5\tools-1.5.jar' myfirstmassisproject Build path Build Path Problem
The project cannot be built until build path errors are resolved myfirstmassisproject Unknown Java Problem
In the myfirstmassisproject/pom.xml there is a mark in the second line.
It says there is a missing artifacts:
Hi,
Nice project! Please add information about the GNU General Public License under which this project is supposed to be distributed, because it's based on Sweet Home 3D project which is available under this license too (see section 2.b. of the GNU GPL).
Thanks,
Emmanuel Puybaret, Sweet Home 3D developer
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.