⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lineobs.dsc

📁 利用JAVA编写的群体机器人局部通讯完成一定得队形控制
💻 DSC
字号:
// This is an example description file for specifying the environment
// when using TBSim.  
 

//======
// SIMULATION BOUNDARY
//======
//
// bounds left right bottom top
//
// bounds statements set the bounds of the visible "playing field" in
// meters for a simulation.   If the aspect ratio of the bounds are not
// the same as the graphical area set aside by the simulation, then
// the robots may wander off the screen. 

bounds -25 25 -20 20


//======
// SEED
//======
//
// seed number
//
// The seed statement sets the random number seed.  The default is
// -1

seed 3


//======
// TIME
//======
//
// time accel_rate
//
// DEPRECATED.  This statement is ignored.

//======
// TIMEOUT
//======
//
// timeout time
//
// The timeout statement indicates when the simulation will terminate in
// milliseconds.  The program automatically terminates when this time
// is reached.  If no timeout statement is given, the default is no
// termination.  NOTE: you *must* use a timeout with a trials statement.
//
// timeout 10000 // ten seconds


//======
// TRIALS
//======
//
// trials num_trials
//
// The trials statement indicates that the simulation should be run
// a certain number of times.  Each trial automatically terminates when the
// timeout time is reached, then a new trial is begun.  Note: certain hooks
// are available in the ControlSystem class for you to know when trials
// begin and end.  See the javadoc documentation.
//
// trials 100 // 100 trials


//======
// MAX TIME STEP
//======
//
// maxtimestep milliseconds
//
// DEPRECATED.  This statement is processed as if it were a "timestep" statment.


//======
// TIMESTEP
//======
//
// timestep milliseconds
//
// timestep statements set the time (in milliseconds) transpices
// between discrete simulation steps.

timestep 100 // 1/10th of a second

//======
// WINDOWSIZE
//======
//
// windowsize width height
//
// The windowsize statement gives a default window size.  This can be
// overridden on the command line.

windowsize 1000 800


//======
// BACKGROUND COLOR
//======
//
// background color
//
// A background statement sets the background color for the simulation.
// The color must be given in hex format as "xRRGGBB" where RR indicates
// the red component (00 for none, FF for full), GG is the green component,
// and BB is the blue.  Here we use white:

background xFFFFFF


//======
// ROBOTS
//======
//
// robot robottype controlsystem x y theta forecolor backcolor
//              visionclass
//
// robot statements cause a robot with a control system to be instantiated
// in the simulation.  Be sure to include the full class name for the
// abstract robot type and your control system.  The x y and theta
// parameters set the initial position of the robot in the field.
// You can used different colors to tell robots apart from one another.
// The visionclass indicates which color the robots see each other as.

// there are 9 robots in the first row.

//robot EDU.gatech.cc.is.abstractrobot.CommN150Sim
//	Domains.LineObs.LineObs -24	-10	0	x000000 xFF0000 1
robot EDU.gatech.cc.is.abstractrobot.CommN150Sim
	Domains.LineObs.LineObs -24	-8	0	x000000 xFF0000 1

robot EDU.gatech.cc.is.abstractrobot.CommN150Sim
	Domains.LineObs.LineObs -24	-6	0	x000000 xFF0000 1 

robot EDU.gatech.cc.is.abstractrobot.CommN150Sim
	Domains.LineObs.LineObs -24	-4	0	x000000 xFF0000 1

robot EDU.gatech.cc.is.abstractrobot.CommN150Sim
	Domains.LineObs.LineObs  -24	-2	0	x000000 xFF0000 1 

robot EDU.gatech.cc.is.abstractrobot.CommN150Sim
	Domains.LineObs.LineObs  -24	0	0	x000000 xFF0000 1 

robot EDU.gatech.cc.is.abstractrobot.CommN150Sim
	Domains.LineObs.LineObs -24	2	0	x000000 xFF0000 1 

robot EDU.gatech.cc.is.abstractrobot.CommN150Sim
	Domains.LineObs.LineObs  -24	4	0	x000000 xFF0000 1 

robot EDU.gatech.cc.is.abstractrobot.CommN150Sim
	Domains.LineObs.LineObs -24	6	0	x000000 xFF0000 1 

robot EDU.gatech.cc.is.abstractrobot.CommN150Sim
	Domains.LineObs.LineObs  -24	8	0	x000000 xFF0000 1      
//robot EDU.gatech.cc.is.abstractrobot.CommN150Sim
//	Domains.LineObs.LineObs  -24	10	0	x000000 xFF0000 1  
//robot EDU.gatech.cc.is.abstractrobot.CommN150Sim
//	Domains.Com.Com -24	12	0	x000000 xFF0000 1
// there are 9 robots in the second row.
//robot EDU.gatech.cc.is.abstractrobot.MultiForageN150Sim 
//	Domains.Formation.formation -22	-8	0	x000000 xFF0000 2

//robot EDU.gatech.cc.is.abstractrobot.MultiForageN150Sim 
//	Domains.Formation.formation -22	-6	0	x000000 xFF0000 2 

//robot EDU.gatech.cc.is.abstractrobot.MultiForageN150Sim 
//	Domains.Formation.formation -22	-4	0	x000000 xFF0000 2

//robot EDU.gatech.cc.is.abstractrobot.MultiForageN150Sim 
//	Domains.Formation.formation -22	-2	0	x000000 xFF0000 2 

//robot EDU.gatech.cc.is.abstractrobot.MultiForageN150Sim 
//	Domains.Formation.formation -22	0	0	x000000 xFF0000 2 

//robot EDU.gatech.cc.is.abstractrobot.MultiForageN150Sim 
//	Domains.Formation.formation -22	2	0	x000000 xFF0000 2 

//robot EDU.gatech.cc.is.abstractrobot.MultiForageN150Sim 
//	Domains.Formation.formation -22	4	0	x000000 xFF0000 2 

//robot EDU.gatech.cc.is.abstractrobot.MultiForageN150Sim 
//	Domains.Formation.formation -22	6	0	x000000 xFF0000 2 

//robot EDU.gatech.cc.is.abstractrobot.MultiForageN150Sim 
//	Domains.Formation.formation -22	8	0	x000000 xFF0000 2 


//======
// OBJECTS
//======
//
// object objecttype x y theta radius forecolor backcolor visionclass
//
// Pbject statements instantiate things without control systems (like
// balls, bins, obstacles, etc. Be sure to include the full class name for the
// object.  The x y and theta parameters set the initial position of
// object in the field.  Forecolor and backcolor are the foreground
// and background colors of the object as drawn. The visionclass
// parameter is used to put each kind of object into it's own perceptual
// class.  That way when the simulated sensors of robots look for things
// they can be sorted by this identifier.

// obstacles
//object EDU.gatech.cc.is.simulation.ObstacleSim 8.5 -7.0 0 0.30 xC0C0C0 x000000 2
//object EDU.gatech.cc.is.simulation.ObstacleSim 1.0 2.0 0 0.80 xC0C0C0 x000000 2
//object EDU.gatech.cc.is.simulation.ObstacleSim 2.3 3.0 0 0.30 xC0C0C0 x000000 2
//object EDU.gatech.cc.is.simulation.ObstacleSim -4  4 0 0.25 xC0C0C0 x000000 2
//object EDU.gatech.cc.is.simulation.ObstacleSim 9  -3.5 0 0.35 xC0C0C0 x000000 2
//object EDU.gatech.cc.is.simulation.ObstacleSim -15 -5 0 0.25 xC0C0C0 x000000 2
//object EDU.gatech.cc.is.simulation.ObstacleSim 10 6 0 0.25 xC0C0C0 x000000 2
//object EDU.gatech.cc.is.simulation.ObstacleSim -2 0 1 6.0 xC0C0C0 x000000 2
//object EDU.gatech.cc.is.simulation.ObstacleSim 4.0 4.0 0 0.45 xC0C0C0 x000000 2


linearobject EDU.cmu.cs.coral.simulation.LinearObstacleSim -14 0 6 6.0 0.4 xC0C0C0 x000000 2

linearobject EDU.cmu.cs.coral.simulation.LinearObstacleSim -14 0 6 -6.5 0.4 xC0C0C0 x000000 2

linearobject EDU.cmu.cs.coral.simulation.LinearObstacleSim  6  6.0  6 -6.5 0.4 xC0C0C0 x000000 2


//linearobject EDU.cmu.cs.coral.simulation.LinearObstacleSim -14 16 6 10 0.4 xC0C0C0 x000000 2

//linearobject EDU.cmu.cs.coral.simulation.LinearObstacleSim -14 6 6 10 0.4 xC0C0C0 x000000 2

//linearobject EDU.cmu.cs.coral.simulation.LinearObstacleSim  -14  16  -14 6 0.4 xC0C0C0 x000000 2


//linearobject EDU.cmu.cs.coral.simulation.LinearObstacleSim -14 -18 6 -10.0 0.4 xC0C0C0 x000000 2

//linearobject EDU.cmu.cs.coral.simulation.LinearObstacleSim -14 -6 6 -10.0 0.4 xC0C0C0 x000000 2

//linearobject EDU.cmu.cs.coral.simulation.LinearObstacleSim  -14  -18  -14 -6 0.4 xC0C0C0 x000000 2




⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -