-
Notifications
You must be signed in to change notification settings - Fork 170
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
Showing
1 changed file
with
42 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
module RoboCompGazebo2Robocomp | ||
{ | ||
struct Vector3 | ||
{ | ||
float x; | ||
float y; | ||
float z; | ||
}; | ||
|
||
struct Quaternion | ||
{ | ||
float x; | ||
float y; | ||
float z; | ||
float w; | ||
}; | ||
|
||
interface Gazebo2Robocomp | ||
{ | ||
// Raw creation | ||
void createEntity(string sdf); | ||
|
||
// Random name creation | ||
void createBoxEntity(Vector3 position, Quaternion orientation, float size); | ||
void createCylinderEntity(Vector3 position, Quaternion orientation, float length, float radius); | ||
void createSphereEntity(Vector3 position, Quaternion orientation, float radius); | ||
void createCapsuleEntity(Vector3 position, Quaternion orientation, float length, float radius); | ||
|
||
// Specific name creation | ||
void createBoxEntity(string name, Vector3 position, Quaternion orientation, float size); | ||
void createCylinderEntity(string name, Vector3 position, Quaternion orientation, float length, float radius); | ||
void createSphereEntity(string name, Vector3 position, Quaternion orientation, float radius); | ||
void createCapsuleEntity(string name, Vector3 position, Quaternion orientation, float length, float radius); | ||
|
||
// Remove by name | ||
void removeEntity(string name); | ||
|
||
// Moving by name | ||
void setEntityPose(string name, Vector3 position, Quaternion orientation); | ||
|
||
}; | ||
}; |