Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
traci
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Contributor 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
ezCar2X
ns3
traci
Commits
a0d1ef1c
Commit
a0d1ef1c
authored
3 years ago
by
Josef Jiru
Browse files
Options
Downloads
Patches
Plain Diff
Changed position representation from center to front bumper
parent
843b77f6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
model/traci-mobility-model.cc
+1
-1
1 addition, 1 deletion
model/traci-mobility-model.cc
model/traci-roi-manager.cc
+2
-2
2 additions, 2 deletions
model/traci-roi-manager.cc
with
3 additions
and
3 deletions
model/traci-mobility-model.cc
+
1
−
1
View file @
a0d1ef1c
...
...
@@ -116,7 +116,7 @@ TraCiMobilityModel::UpdateFromTraCi (void) const
// update the helper state as well
try
{
Vector
pos
=
vehicle
->
Get
Center
Position
();
Vector
pos
=
vehicle
->
GetPosition
();
double
height
=
0
;
...
...
This diff is collapsed.
Click to expand it.
model/traci-roi-manager.cc
+
2
−
2
View file @
a0d1ef1c
...
...
@@ -151,7 +151,7 @@ RoiManager::UpdateWithRegion ()
if
(
now
>=
it
->
second
.
nextCheck
)
{
auto
const
&
vehicle
=
it
->
second
.
vehicle
;
auto
pos
=
vehicle
->
Get
Center
Position
();
auto
pos
=
vehicle
->
GetPosition
();
if
(
m_roi
.
IsInside
(
pos
))
{
NS_LOG_LOGIC
(
"Vehicle entered ROI: "
<<
it
->
first
);
...
...
@@ -188,7 +188,7 @@ RoiManager::UpdateWithRegion ()
for
(
auto
it
=
m_insideRoi
.
begin
();
it
!=
m_insideRoi
.
end
();
)
{
auto
const
&
vehicle
=
it
->
second
.
vehicle
;
auto
pos
=
vehicle
->
Get
Center
Position
();
auto
pos
=
vehicle
->
GetPosition
();
if
(
!
m_roi
.
IsInside
(
pos
))
{
...
...
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