Code Monkey home page Code Monkey logo

massis's People

Contributors

rpax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

massis's Issues

agent does not move

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).
javaw_2016-12-25_16-24-18

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);
}

contact

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

Doors opening and closing

Hi, Mr. Rafael Pax
Hope you can help to make the functionality of dynamical opening and closing doors.
Thank you!

EnvironmentEditor.java does not work

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:

Missing license

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

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.