Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OUTDATED Verse-library
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AutonomyCourse_ECEIllinois
OUTDATED Verse-library
Commits
a0aa4a5c
Commit
a0aa4a5c
authored
2 years ago
by
sayanmitracode
Browse files
Options
Downloads
Patches
Plain Diff
1 ball semi working
parent
46a35a21
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
demo/ball_bounces.py
+1
-0
1 addition, 0 deletions
demo/ball_bounces.py
dryvr_plus_plus/example/example_agent/ball_agent.py
+3
-1
3 additions, 1 deletion
dryvr_plus_plus/example/example_agent/ball_agent.py
with
4 additions
and
1 deletion
demo/ball_bounces.py
+
1
−
0
View file @
a0aa4a5c
...
...
@@ -85,6 +85,7 @@ if __name__ == "__main__":
# Longer term: We should initialize by writing expressions like "-2 \leq myball1.x \leq 5"
# "-2 \leq myball1.x + myball2.x \leq 5"
traces
=
bouncingBall
.
simulate
(
10
)
# There should be a print({traces}) function
fig
=
go
.
Figure
()
fig
=
plotly_simulation_anime
(
traces
,
tmp_map
,
fig
)
fig
.
show
()
...
...
This diff is collapsed.
Click to expand it.
dryvr_plus_plus/example/example_agent/ball_agent.py
+
3
−
1
View file @
a0aa4a5c
...
...
@@ -51,4 +51,6 @@ class BallAgent(BaseAgent):
return
np
.
array
(
trace
)
if
__name__
==
'
__main__
'
:
aball
=
BallAgent
(
'
red_ball
'
,
file_name
=
"
/Users/mitras/Dpp/GraphGeneration/demo/ball_bounces.py
"
)
\ No newline at end of file
aball
=
BallAgent
(
'
red_ball
'
,
file_name
=
"
/Users/mitras/Dpp/GraphGeneration/demo/ball_bounces.py
"
)
trace
=
aball
.
TC_simulate
({
'
none
'
},[
5
,
10
,
2
,
2
],
10
)
print
(
trace
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment