Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hochautomatisiertes-Fahren
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Philipp Badenhoop
Hochautomatisiertes-Fahren
Commits
42b7b376
Commit
42b7b376
authored
6 years ago
by
Franz Bethke
Browse files
Options
Downloads
Patches
Plain Diff
Remove C2CBase
parent
38453e16
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/catkin_ws/src/car/include/mainNode/C2CBase.h
+0
-40
0 additions, 40 deletions
modules/catkin_ws/src/car/include/mainNode/C2CBase.h
modules/catkin_ws/src/car/src/mainNode/C2CBase.cpp
+0
-32
0 additions, 32 deletions
modules/catkin_ws/src/car/src/mainNode/C2CBase.cpp
with
0 additions
and
72 deletions
modules/catkin_ws/src/car/include/mainNode/C2CBase.h
deleted
100644 → 0
+
0
−
40
View file @
38453e16
#ifndef C2CBASE_H
#define C2CBASE_H
#include
"PlatoonProtocolLib/Vehicle.h"
#include
"PlatoonProtocolLib/LeaderVehicle.h"
#include
"PlatoonProtocolLib/FollowerVehicle.h"
#include
"PlatoonProtocolLib/Protocol.h"
#include
"PlatoonState.h"
namespace
car
{
class
C2CBase
{
friend
class
PlatoonController
;
// only the PlatoonControler should be able to use the swap functions below!
public:
C2CBase
();
private:
PlatoonState
curState
=
PlatoonState
::
ACC
;
networking
::
Networking
c2cNetLeader
;
// thread + event queue
networking
::
Networking
c2cNetFollower
;
// thread + event queue
platoonProtocol
::
LeaderVehicle
::
Ptr
c2cLeader
;
platoonProtocol
::
FollowerVehicle
::
Ptr
c2cFollower
;
void
swap2LV
();
void
swap2FV
();
void
swap2ACC
();
bool
isPlatoonRunning
();
platoonProtocol
::
PlatoonConfig
getPlatoonConfig
();
};
}
#endif // C2CBASE_H
This diff is collapsed.
Click to expand it.
modules/catkin_ws/src/car/src/mainNode/C2CBase.cpp
deleted
100644 → 0
+
0
−
32
View file @
38453e16
#include
"../../include/mainNode/C2CBase.h"
namespace
car
{
C2CBase
::
C2CBase
(){}
void
C2CBase
::
swap2LV
()
{
curState
=
PlatoonState
::
CACC_LV
;
}
void
C2CBase
::
swap2FV
()
{
curState
=
PlatoonState
::
CACC_FV
;
}
void
C2CBase
::
swap2ACC
()
{
curState
=
PlatoonState
::
ACC
;
}
bool
C2CBase
::
isPlatoonRunning
()
{
std
::
cout
<<
"C2CBase::isRunning"
<<
std
::
endl
;
}
platoonProtocol
::
PlatoonConfig
C2CBase
::
getPlatoonConfig
()
{
std
::
cout
<<
"C2CBase::getPlatoonConfig"
<<
std
::
endl
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
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