Code Monkey home page Code Monkey logo

adf-sample-agent-java's People

Contributors

alim1369 avatar armanaxh avatar gnardin avatar kinnrai avatar modaresimr avatar okanasik avatar tkmnet avatar uranos-ait avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adf-sample-agent-java's Issues

Errors when execute "launch.sh -all" in rcrs-adf-sample.

It points out that

[ RCRS ADF Version 2.3.0 (build 20200403013538) ]

[adf.sample.SampleLoader, -t, -1,-1,-1,-1,-1,-1]
Exception in thread "main" java.lang.NumberFormatException: For input string: "adf.sample.SampleLoader"
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
at java.base/java.lang.Integer.parseInt(Integer.java:668)
at java.base/java.lang.Integer.parseInt(Integer.java:786)
at adf.Main.main(Main.java:25)

So, do you know how to solve it?
图片

gradlew problem

The problem occurs when I try ./gradlew build,how do i solve it?
图片
)

Feature: using docker to run the code

I think it can be interesting to use docker and gradle alpine image (gradle:jdk17-alpine or openjdk:17-jdk-alpine)
In this case, it can be easier for some newcomers to start using the ADF and also the simulator.

each time they can easily run the code by
docker-compose up

Error in module.cfg

About DefaultTacticsFireBrigade.Search : sample_team.module.complex.self.SampleSearch in module.cfg
I think this "self" is unnecessary.

Problems with mounting agents

I want to consult a problem encountered in operation. After I executed the command bash launch.sh -all , the interface remained in loading, and the agent did not run successfully

image

Directories component, agent, launcher nonexistent in adf-sample/src/adf

Hi, I followed the "RoboCupRescue Simulator and Agent Development Framework Manual" to download the project
In section 2.3 I was unable to use the suggested commands to download ADF, so instead I reached manually https://github.com/RCRS-ADF/RCRS-ADF/releases and then followed the link https://github.com/RCRS-ADF/sample
and I git clone the repository.

The problem is that in section 5.1 and the figure on top of page 7 they refer to the following directories which should be located at adf-sample/src/adf:

component

agent

launcher

but when I look into that directory on my local machine I cannot find any of them

Am I supposed to create such directories? From the instructions it seem they should already be provided, but I cannot find them. Especially it concerns me the absence of directory "agent".

I noticed that in RCRS-ADF/releases there is also the link to https://github.com/roborescue/rcrs-adf-core (it initially send you to a closed repo where I found this link)
And in that repo, in directory rcrs-adf-core/build/docs/javadoc/adf/
There are the three directories "component", "agent", "launcher", together with "debug". They all contains the correct subdirectories, even some more.

Should I clone the repository from https://github.com/roborescue/rcrs-adf-core and combine the parts I am currently missing in mine?

Any help would be appreciated

start.sh error: java.net.URLClassLoader

Dear developer,
As refer to the manual, run rcrs-sever/start-comprun.sh script and when I run start.sh script, there is one error so that I cannot run the script.

Here is my java version information.
java version "9.0.4"
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)

Error message:
[ RCRS ADF Version 2.3.0 (build 20180327T191931Z) ]

Exception in thread "main" java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader
at adf.launcher.AgentLauncher.initConnector(AgentLauncher.java:56)
at adf.launcher.AgentLauncher.init(AgentLauncher.java:35)
at adf.launcher.AgentLauncher.(AgentLauncher.java:29)
at adf.Main.main(Main.java:23)

Would you help fix this running errors?
I would really appreciate it if you could help.

Best regards,
swha

compile failed

Hello, we are trying to convert the old code to the new framework failed to compile. We put the old code in the src folder in the new framework and replaced the module.cfg file, but the following error occurred when mounting the agent using the bash launch.sh -all command
image

./compile.sh give errors

I followed the tutorial and I got compilation errors. I satisfied all of the software requirements and I am currently using Ubuntu 16.04.

Attached are screenshots of the error messages.
error
error1

Launching errors

Hi,
Following the manual instructions for launching the agents' simulation, there are some errors reported by the program.
Below is the output of the terminal.

The server was started with the following command:
~/rcrs/rcrs-server/boot$ bash start-comprun.sh
(Output of server is OK - no errors)

Thanks,

~/rcrs/rcrs-adf-sample$ bash launch.sh -all

> Task :launch
[ RCRS ADF Version 3.0.0 (build 20210313181747) ]

[START ] Connect to server (host:localhost, port:7000)
[FINISH] [ERROR ] Cannot Load FireStation Control !!
[FINISH] [ERROR ] Cannot Load AmbulanceCentre Control !!
[FINISH] [ERROR ] Cannot Load PoliceOffice Control !!
[FINISH] Connect FireStation (success:0)
[FINISH] Connect PoliceOffice (success:0)
[FINISH] Connect AmbulanceCentre (success:0)
[INFO  ] Connected - adf.agent.platoon.PlatoonAmbulance@28bc6f41 (PRECOMPUTED)
[INFO  ] Connected - adf.agent.platoon.PlatoonFire@65dad161 (PRECOMPUTED)
[INFO  ] Connected - adf.agent.platoon.PlatoonPolice@77ff37b3 (PRECOMPUTED)
[FINISH] [ERROR ] Cannot Load PoliceForce Control !!
[FINISH] Connect PoliceForce (success:1)
[FINISH] [ERROR ] Cannot Load FireBrigade Tactics !!
[FINISH] [ERROR ] Cannot Load AmbulanceTeam Tactics !!
[FINISH] Connect FireBrigade (success:1)
[FINISH] Connect AmbulanceTeam (success:1)
[FINISH] Done connecting to server (3 agents)

Debugger

Hello, a complete noob here. Is there any way I can debug the code I write? I tried to find information about this in the documentation but all I found was the visual debugger. I would like to step through my code. Thanks!

map change problem

When I try to change a map, he keeps getting the following error
图片

And i tried launch --debug, but I don't know how to use it. Is there any documentation about debug?
@gnardin

problem

In the new version of adf-sample-agent-java, there are only a few classes left in the figure below. Where can we see the modules such as centralized, extension, tactics, and module?
图片
图片

About external libraries

I am a member of the AIT-Rescue team.
What should I do if I want to use a external library (open source) that is not originally included in Gradlew.build?
Can I rewrite build.gradle for the addition?
Also, can I use the rewritten build.gradle in the competition?

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.