-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
00b5992
commit 7013611
Showing
11 changed files
with
150 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
roboteam_world/observer/include/observer/filters/vision/RobotTrajectorySegment.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// Created by rolf on 30-7-23. | ||
// | ||
|
||
#ifndef RTT_ROBOTEAM_WORLD_OBSERVER_SRC_FILTERS_VISION_ROBOTTRAJECTORYSEGMENT_H | ||
#define RTT_ROBOTEAM_WORLD_OBSERVER_SRC_FILTERS_VISION_ROBOTTRAJECTORYSEGMENT_H | ||
|
||
#include <roboteam_utils/RobotShape.h> | ||
namespace rtt { | ||
|
||
//This class contains the data necessary to describe a robot travelling at a constant velocity | ||
//For a small period of time. | ||
//This is an approximation of the robots' behavior used for computing ball collisions | ||
struct RobotTrajectorySegment { | ||
RobotTrajectorySegment(RobotShape startPos, | ||
Vector2 vel, | ||
double angVel, | ||
double dt, | ||
bool isBlue, | ||
int id | ||
); | ||
RobotShape startPos; //includes robots' starting angle | ||
Vector2 vel; | ||
double angVel; | ||
double dt; | ||
|
||
bool isBlue; | ||
int id; | ||
}; | ||
|
||
} | ||
|
||
#endif // RTT_ROBOTEAM_WORLD_OBSERVER_SRC_FILTERS_VISION_ROBOTTRAJECTORYSEGMENT_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
roboteam_world/observer/src/filters/vision/RobotTrajectorySegment.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// Created by rolf on 30-7-23. | ||
// | ||
|
||
#include <utility> | ||
|
||
#include "observer/filters/vision/RobotTrajectorySegment.h" | ||
namespace rtt { | ||
|
||
RobotTrajectorySegment::RobotTrajectorySegment(RobotShape startPos, | ||
Vector2 vel, | ||
double angVel, | ||
double dt, | ||
bool isBlue, | ||
int id) : | ||
startPos{std::move(startPos)}, | ||
vel{vel}, | ||
angVel{angVel}, | ||
dt{dt}, | ||
isBlue{isBlue}, | ||
id{id}{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters