roborescue / adf-sample-agent-java Goto Github PK
View Code? Open in Web Editor NEWA sample team using RCRS Agent Development Framework
Home Page: https://roborescue.github.io/rcrs-adf-sample/
License: BSD 3-Clause "New" or "Revised" License
A sample team using RCRS Agent Development Framework
Home Page: https://roborescue.github.io/rcrs-adf-sample/
License: BSD 3-Clause "New" or "Revised" License
I don't know how to use debug, do you have any instructions about debug? @gnardin
About DefaultTacticsFireBrigade.Search : sample_team.module.complex.self.SampleSearch
in module.cfg
I think this "self" is unnecessary.
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!
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
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?
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)
When there is only a voice communication and no radio communication channel, the SampleMessageManager module crashes.
404 site not found error on the following urls containing documentation for roborescue/adf-core-java & /adf-sample-agent-java:
https://roborescue.github.io/rcrs-adf-sample/index.html
https://roborescue.github.io/rcrs-adf-sample/adf-manual.pdf
https://roborescue.github.io/rcrs-adf-sample/
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
Hello sir,
After the recent update of the code in the rcrs server which is done one month ago, the sample agents stopped working for test map. For other maps, the simulation is irregular(sometimes the agents work perfectly, sometimes they are not moving at all or partially working ). Could you tell me what I have to do .
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
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)
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
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.