Skip to content

Instantly share code, notes, and snippets.

@xiangyuanhang
Created February 10, 2019 02:25
Show Gist options
  • Save xiangyuanhang/9017cde8c6e0806856a83b8c5aa5dfbe to your computer and use it in GitHub Desktop.
Save xiangyuanhang/9017cde8c6e0806856a83b8c5aa5dfbe to your computer and use it in GitHub Desktop.
pedModelSwapSdraft
<?xml version="1.0"?>
<Experiment version="2.0">
<SpatialQuery type="kd-tree" test_visibility="false" />
<OpenSteer max_force="8" leak_through="0.1" reaction_time="0.5" />
<Common time_step="0.1" />
<GCF reaction_time="0.5" max_agent_dist="2" max_agent_force="3" agent_interp_width="0.1" agent_force_strength="0.35" />
<Helbing agent_scale="4000" obstacle_scale="2000" reaction_time="0.2" body_force="1200" friction="2400" force_distance="0.02" />
<Johansson agent_scale="35" obstacle_scale="35" reaction_time="0.5" force_distance="0.15" stride_time="0.5" />
<!--<Karamouzas orient_weight="0.8" fov="140" reaction_time="0.4" wall_steepness="2" wall_distance="2" colliding_count="5" d_min="1" d_mid="8" d_max="10" agent_force="4" />-->
<Karamouzas orient_weight="0.8" fov="200" reaction_time="0.4" wall_steepness="2" wall_distance="2" colliding_count="5" d_min="1" d_mid="8" d_max="10" agent_force="2" weight_factor="0.8" />
<Zanlungo agent_scale="2000" obstacle_scale="4000" reaction_time="0.5" force_distance="0.015" />
<Dummy stddev="0.05" />
<AgentProfile name="group1" >
<Common max_angle_vel="360" class="1" max_neighbors="10" obstacleSet="1" neighbor_dist="5" r="0.2" pref_speed="1.34" max_speed="2" max_accel="5" />
<OpenSteer tau="3" tauObst="6" />
<PedVO factor="1.57" buffer="0.9" tau="3" tauObst="0.1" turningBias="1.0" />
<GCF stand_depth="0.18" move_scale="0.53" slow_width="0.25" sway_change="0.05" />
<Helbing mass="80" />
<Johansson fov_weight="0.16" />
<Karamouzas personal_space="0.69" anticipation="8" />
<ORCA tau="3.0" tauObst="0.15" />
<Zanlungo mass="80" orient_weight="0.75" />
</AgentProfile>
<AgentProfile name="group2" inherits="group1" >
<Common class="2" />
</AgentProfile>
<AgentGroup>
<ProfileSelector type="const" name="group1" />
<StateSelector type="const" name="MoveDown" />
<Generator type="hex_lattice"
anchor_x="0" anchor_y="10.18"
alignment="center" row_direction="x"
density="1.8" width="4"
population="44" rotation="0"
displace_dist="n" displace_mean="0.1" displace_stddev="0.03"
/>
</AgentGroup>
<!-- 45 agents -->
<AgentGroup>
<ProfileSelector type="const" name="group2" />
<StateSelector type="const" name="WaitLeft" />
<Generator type="hex_lattice"
anchor_x="10.2" anchor_y="-1.3"
alignment="left" row_direction="y"
density="1.8" width="10"
population="44" rotation="0"
displace_dist="n" displace_mean="0.1" displace_stddev="0.03"
/>
</AgentGroup>
<ObstacleSet type="explicit" class="1">
<Obstacle closed="1">
<Vertex p_x="2.0" p_y="50.00" />
<Vertex p_x="2.0" p_y="2.0" />
<Vertex p_x="50" p_y="2.0" />
</Obstacle>
<Obstacle closed="1">
<Vertex p_x="2.0" p_y="-2.0" />
<Vertex p_x="2.0" p_y="-50.00" />
<Vertex p_x="50.0" p_y="-2.0" />
</Obstacle>
<Obstacle closed="1">
<Vertex p_x="-2.0" p_y="-2.0" />
<Vertex p_x="-50" p_y="-2.0" />
<Vertex p_x="-2.0" p_y="-50" />
</Obstacle>
<Obstacle closed="1">
<Vertex p_x="-2.0" p_y="2.0" />
<Vertex p_x="-2.0" p_y="50.0" />
<Vertex p_x="-50" p_y="2.0" />
</Obstacle>
</ObstacleSet>
</Experiment>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment