Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
JPSreport
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
JuPedSim
JPSreport
Commits
bde33508
Verified
Commit
bde33508
authored
5 years ago
by
Mohcine Chraibi
Browse files
Options
Downloads
Patches
Plain Diff
check for empty vectors
related to #107
parent
53da2577
No related branches found
No related tags found
1 merge request
!19
107 method i z pos
Pipeline
#20697
passed
5 years ago
Stage: configure
Stage: compile
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
methods/Method_I.cpp
+5
-0
5 additions, 0 deletions
methods/Method_I.cpp
with
5 additions
and
0 deletions
methods/Method_I.cpp
+
5
−
0
View file @
bde33508
...
...
@@ -138,6 +138,11 @@ bool Method_I::Process(const PedData& peddata,const fs::path& scriptsLocation, c
vector
<
double
>
YInFrame
=
peddata
.
GetYInFrame
(
frameNr
,
ids
,
zPos_measureArea
);
vector
<
double
>
ZInFrame
=
peddata
.
GetZInFrame
(
frameNr
,
ids
,
zPos_measureArea
);
vector
<
double
>
VInFrame
=
peddata
.
GetVInFrame
(
frameNr
,
ids
,
zPos_measureArea
);
if
(
XInFrame
.
size
()
==
0
)
{
Log
->
Write
(
"Warning:
\t
no pedestrians in frame <%d>"
,
frameNr
);
continue
;
}
//vector int to_remove
//------------------------------Remove peds outside geometry------------------------------------------
for
(
int
i
=
0
;
i
<
(
int
)
IdInFrame
.
size
();
i
++
)
...
...
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