-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from uzh-rpg/dev/unity_bridge
Dev/unity bridge
- Loading branch information
Showing
16 changed files
with
467 additions
and
46 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
// | ||
// This is inspired by RaiGym, thanks. | ||
// | ||
#pragma once | ||
|
||
// standard library | ||
|
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
// | ||
// This is inspired by RaiGym, thanks. | ||
// | ||
#pragma once | ||
|
||
// std | ||
|
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,30 @@ | ||
#pragma once | ||
|
||
#include "flightlib/objects/static_object.hpp" | ||
|
||
namespace flightlib { | ||
class StaticGate : public StaticObject { | ||
public: | ||
StaticGate(std::string id, std::string prefab_id); | ||
~StaticGate(){}; | ||
|
||
// publich set functions | ||
void setPosition(const Vector<3>& position) { position_ = position; }; | ||
void setRotation(const Quaternion& quaternion) { quat_ = quaternion; }; | ||
void setSize(const Vector<3>& size) { size_ = size; }; | ||
|
||
// publich get functions | ||
Vector<3> getPos(void) { return position_; }; | ||
Quaternion getQuat(void) { return quat_; }; | ||
Vector<3> getSize(void) { return size_; }; | ||
|
||
private: | ||
std::string id_; | ||
std::string prefab_id_; | ||
|
||
Vector<3> position_{0.0, 0.0, 0.0}; | ||
Quaternion quat_{1.0, 0.0, 0.0, 0.0}; | ||
Vector<3> size_{1.0, 1.0, 1.0}; | ||
}; | ||
|
||
} // namespace flightlib |
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,27 @@ | ||
#pragma once | ||
|
||
#include "flightlib/common/types.hpp" | ||
|
||
namespace flightlib { | ||
class StaticObject { | ||
public: | ||
StaticObject(std::string id, std::string prefab_id) | ||
: id_(id), prefab_id_(prefab_id){}; | ||
virtual ~StaticObject(){}; | ||
|
||
// publich get functions | ||
virtual Vector<3> getPos(void) = 0; | ||
virtual Quaternion getQuat(void) = 0; | ||
virtual Vector<3> getSize(void) = 0; | ||
|
||
// public get functions | ||
const std::string getID(void) { return id_; }; | ||
const std::string getPrefabID(void) { return prefab_id_; }; | ||
|
||
|
||
protected: | ||
const std::string id_; | ||
const std::string prefab_id_; | ||
}; | ||
|
||
} // namespace flightlib |
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
Oops, something went wrong.