<file_sep>#!/bin/bash
#
#RoboCup 2012 sample start script for 3D soccer simulation
#

AGENT_BINARY=apollo3d
BINARY_DIR="."
NUM_PLAYERS=11

export LD_LIBRARY_PATH=./lib
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:makelibs

#killall -9 "$AGENT_BINARY" &> /dev/null

for ((i=1;i<=$NUM_PLAYERS;i++)); do
    case $i in
       6  | 9 )
                echo "Running agent No. $i -- Type 4"
                "$BINARY_DIR/$AGENT_BINARY" --host $1 --unum $i --type 4 > /dev/null 2> /dev/null &
                ;;
       3 | 4 )
               echo "Running agent No. $i -- Type 1"
               "$BINARY_DIR/$AGENT_BINARY" --host $1 --unum $i --type 1 > /dev/null 2> /dev/null &   
                ;;
       #4 | 5)
        #       echo "Running agent No. $i -- Type 2"
        #        "$BINARY_DIR/$AGENT_BINARY" --host $1 --unum $i --type 2 > /dev/null 2> /dev/null &
          #      ;;
       *)
              echo "Running agent No. $i -- Type 0"
                "$BINARY_DIR/$AGENT_BINARY" --host $1 --unum $i --type 0 > /dev/null 2> /dev/null &
                ;;
    esac
    sleep 1
done
<file_sep>#!/bin/bash
#
# sample start script for 3D soccer simulation
#

AGENT_BINARY="YuShan3D"
BINARY_DIR="./"
killall -9 "$AGENT_BINARY" &> /dev/null
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:makelib/
echo "Running agent No. 1"
"$BINARY_DIR/$AGENT_BINARY" -s $1 -t YuShan3D -u 1 > /dev/null 2> /dev/null&
sleep 1.0
<file_sep>#
# prepare soccer simulation
#
# setup soccer specific materials
#run "scripts/rcs-materials.rb"
#run "scripts/rcs-materials-textures.rb"

#material = sparkCreate('kerosin/Material2DTexture', $serverPath+'material/matGrass');
#material.setDiffuse(1.0,1.0,1.0,1.0)
#material.setAmbient(0.5,0.5,0.5,1.0)
#material.setDiffuseTexture('textures/rcs-naofield.png')

#importBundle "soccer"

# soccer namespace
$soccerNameSpace = "Soccer"


# register a variable in the soccer namespace
def addSoccerVar(name, value)
   createVariable($soccerNameSpace, name, value)
end

# helper to get the value of a variable in the soccer namespace
def getSoccerVar(name)
  eval <<-EOS 
    #{$soccerNameSpace}.#{name} 
  EOS
end

# set a random seed (a seed of 0 means: use a random random seed)
randomServer = get($serverPath+'random')
if (randomServer != nil)
  randomServer.seed(0)
end

# the soccer field dimensions in meters
addSoccerVar('FieldLength', 30.0)
addSoccerVar('FieldWidth', 20.0)
addSoccerVar('FieldHeight', 40.0)
addSoccerVar('GoalWidth', 2.1)
addSoccerVar('GoalDepth', 0.6)
addSoccerVar('GoalHeight', 0.8)
addSoccerVar('PenaltyLength',1.8)
addSoccerVar('PenaltyWidth',3.9)
addSoccerVar('FreeKickDistance', 2.0)
addSoccerVar('FreeKickMoveDist', 2.2)	#
addSoccerVar('GoalKickDist', 1.0)
addSoccerVar('AutomaticKickOff', false)
addSoccerVar('WaitBeforeKickOff', 30.0)  #

# agent parameters
addSoccerVar('AgentRadius',  0.4)

# ball parameters
addSoccerVar('BallRadius', 0.042)
addSoccerVar('BallMass',0.026)

# soccer rule parameters
addSoccerVar('RuleGoalPauseTime',3.0)
addSoccerVar('RuleKickInPauseTime',1.0)
addSoccerVar('RuleHalfTime',5.0 * 60)
addSoccerVar('RuleDropBallTime', 15)    #
addSoccerVar('SingleHalfTime', false)
addSoccerVar('UseOffside',false)

# recorders
addSoccerVar('BallRecorder',"Ball/geometry/recorder")
addSoccerVar('LeftGoalRecorder',"leftgoal/GoalBox/BoxCollider/recorder")
addSoccerVar('RightGoalRecorder',"rightgoal/GoalBox/BoxCollider/recorder")

run "naorobottypes.rb"

# textures
createVariable('Nao', 'UseTexture', 'true')

#scene = get($scenePath)
#if (scene != nil)
#  scene.importScene('rsg/agent/nao/soccer.rsg')
#end

# setup the GameControlServer
#gameControlServer = get($serverPath+'gamecontrol')
#if (gameControlServer != nil)
#  gameControlServer.initControlAspect('GameStateAspect')
#  gameControlServer.initControlAspect('BallStateAspect')
#  gameControlServer.initControlAspect('SoccerRuleAspect')
#end

# init monitorItems to transmit game state information
#monitorServer = get($serverPath+'monitor')
#if (monitorServer != nil)
#  monitorServer.registerMonitorItem('GameStateItem')
#end

# install the TrainerCommandParser to parse commands received from a
# monitor client
#sparkRegisterMonitorCmdParser 'TrainerCommandParser'
<file_sep>#!/bin/bash
#
# RoboCup 2015 penalty start script for 3D Simulation Competitions
#

AGENT_BINARY=penalty-keeper

export LD_LIBRARY_PATH=./lib
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:makelibs

./$AGENT_BINARY --host $1 > /dev/null 2> /dev/null &
<file_sep>#!/bin/bash
#
# Robocup 2015 sample kill script for 3D soccer simulation
#

killall -9 "CIT3D_binary" &> /dev/null 



<file_sep>#!/bin/bash

killall -9 rcssserver3d &

killall -9 kylinsky
<file_sep>#!/bin/bash
#
# Robocup 2015 sample start script for 3D soccer simulation
#
export LD_LIBRARY_PATH==$LD_LIBRARY_PATH:citlib/

AGENT_BINARY="CIT3D_binary"
BINARY_DIR="./"
$IPAddress

if [ -z $1 ] ; then
{
	echo "please set host"
	IPAddress=127.0.0.1
}
else
{
	IPAddress=$1
}
fi
killall -9 "$AGENT_BINARY" &> /dev/null

echo "Running $AGENT_BINARY agent No.2"
       $BINARY_DIR$AGENT_BINARY  --host=$IPAddress   --Unum=2  --team="CIT3D"     --striker> ./log/kickerstdout222.out 2> ./log/kickerstderr222.err &
  sleep 2


<file_sep>#!/bin/bash
#
# sample start script for 3D soccer simulation
#
AGENT_BINARY="YuShan3D"
BINARY_DIR="./"
NUM_PLAYERS=11
#killall -9 "$AGENT_BINARY" &> /dev/null
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:makelib/
echo "       YuShan3D_2015 3D soccer simulation team "
echo ""
for ((i=1;i<=$NUM_PLAYERS ;i++)); do
echo "Running agent No. $i"
"$BINARY_DIR/$AGENT_BINARY" -s 192.168.2.22 -t YuShan3D -u $i > /dev/null 2> /dev/null&
sleep 1.0
done
<file_sep>#!/bin/bash

export LD_LIBRARY_PATH=./lib


./apollo3d_kick --host $1 --port $2 --x $3 --y $4 --challenge $5> /dev/null 2> /dev/null &
<file_sep>#!/bin/bash
#
#WrightOcean kill script for 3D Simulation Competitions
#

# Kill agents
AGENT="WrightOcean"
killall -9 $AGENT
sleep 1

<file_sep>#!/bin/bash
#
# Robocup 2015 sample start script for 3D soccer simulation
#
export LD_LIBRARY_PATH==$LD_LIBRARY_PATH:citlib/

AGENT_BINARY="CIT3D_binary"
BINARY_DIR="./"
NUM_PLAYERS=11
$IPAddress

if [ -z $1 ] ; then
{
       echo "please set host"
	IPAddress=192.168.1.12
}
else
{
	IPAddress=$1
}
fi

killall -9 "$AGENT_BINARY" &> /dev/null

cd "$( cd "$( dirname "$0" )" && pwd )"
for ((i=1;i<=$NUM_PLAYERS;i++)); do
   echo "Running $AGENT_BINARY agent No. $i"
  "$BINARY_DIR$AGENT_BINARY" --host=$IPAddress --Unum=$i --team='CIT3D' > /dev/null 2> /dev/null &
sleep 1
done

<file_sep>#!/bin/bash
#
# china open 2013 sample kill script for YusShan3D soccer simulation
#
killall -9 "YuShan3D" &> /dev/null

 
<file_sep>#!/bin/bash
#
# Robocup 2011 sample start script for 3D soccer simulation
#
export LD_LIBRARY_PATH==$LD_LIBRARY_PATH:./lib

AGENT_BINARY="kylinsky"
BINARY_DIR="./" 
NUM_PLAYERS=11
#killall -9 "$AGENT_BINARY" &> /dev/null
cd "$( cd "$( dirname "$0" )" && pwd )"
   for ((i=1;i<=$NUM_PLAYERS;i++)); do
    echo "Running $AGENT_BINARY agent No. $i"
    "$BINARY_DIR$AGENT_BINARY" --host=$1 --Unum=$i # > /dev/null 2> /dev/null &
sleep 1
done

<file_sep># ExecutableCode
> 历年可执行文件

我们如今拥有的代码：

- 2019国赛代码
- ...

我们希望能让社区变得更大、更强。如果你有任何资源，请拉动合并请求，这很有意义。

谢谢

PS: 如果有任何问题，请让我们知道，我们会很高兴。
<file_sep>#!/bin/bash
#
# Robocup 2011 sample start script for 3D soccer simulation
#
export LD_LIBRARY_PATH==$LD_LIBRARY_PATH:./lib

AGENT_BINARY="kylinsky"
BINARY_DIR="./"
NUM_PLAYERS=1
#killall -9 "$AGENT_BINARY" &> /dev/null

#   for ((i=1;i<=$NUM_PLAYERS;i++)); do
    echo "Running $AGENT_BINARY agent No. $NUM_PLAYERS"
    "$BINARY_DIR$AGENT_BINARY" --host=$1 --Unum=$NUM_PLAYERS > /dev/null 2> /dev/null &
sleep 1
#done

<file_sep>#
# apollo3d.rb
#

run 'soccersim-apollo.rb'
#run 'naosoccersim.rb'

#sparkLogErrorToCerr()

time = 0.0
#host = '127.0.0.1'
#host = '127.0.0.1'
host = '127.0.0.1'
port = 3100

DEBUG = 0
VERSUS = 1
WALK = 2
KICK = 3

challenge = VERSUS

#if challenge == KICK || challenge == WALK
#	time = 3.0
#end

createVariable('Agent.ThinkingTime', time)
createVariable('Agent.Host', host)
createVariable('Agent.Port', port)
createVariable('Agent.Challenge', challenge)
createVariable('Agent.AttackMode', 0)
<file_sep>killall -9 apollo3d
