Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
934 changes: 339 additions & 595 deletions Project/Levels/RoboticManipulation/RoboticManipulation.prefab

Large diffs are not rendered by default.

63 changes: 11 additions & 52 deletions Project/Prefabs/apple.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"$type": "EditorEntitySortComponent",
"Id": 10306973598365841266,
"Child Entity Order": [
"Entity_[534760181612]"
"Entity_[27267717522721]"
]
},
"EditorInspectorComponent": {
Expand Down Expand Up @@ -162,60 +162,19 @@
"$type": "EditorVisibilityComponent",
"Id": 17099443271266381888
},
"TransformComponent": {
"$type": "{27F1E1A1-8D9D-4C3B-BD3A-AFB9762449C0} TransformComponent",
"Id": 17921041119350952090,
"Parent Entity": "Entity_[534760181612]"
}
}
},
"Entity_[534760181612]": {
"Id": "Entity_[534760181612]",
"Name": "apple",
"Components": {
"EditorDisabledCompositionComponent": {
"$type": "EditorDisabledCompositionComponent",
"Id": 18044469881547845778
},
"EditorEntityIconComponent": {
"$type": "EditorEntityIconComponent",
"Id": 12292306854165822588
},
"EditorEntitySortComponent": {
"$type": "EditorEntitySortComponent",
"Id": 8314993489357136941,
"Child Entity Order": [
"Entity_[27267717522721]"
]
},
"EditorInspectorComponent": {
"$type": "EditorInspectorComponent",
"Id": 17137814805974204638,
"ComponentOrderEntryArray": [
{
"ComponentId": 8647185006201569915
}
]
},
"EditorLockComponent": {
"$type": "EditorLockComponent",
"Id": 4475825274964774522
},
"EditorOnlyEntityComponent": {
"$type": "EditorOnlyEntityComponent",
"Id": 2442758587829817613
},
"EditorPendingCompositionComponent": {
"$type": "EditorPendingCompositionComponent",
"Id": 11225710462403311240
},
"EditorVisibilityComponent": {
"$type": "EditorVisibilityComponent",
"Id": 16780360982239074981
"ROS2FrameEditorComponent": {
"$type": "ROS2FrameEditorComponent",
"Id": 9671399038384703516,
"ROS2FrameConfiguration": {
"Namespace Configuration": {
"Namespace Strategy": 2
},
"Frame Name": ""
}
},
"TransformComponent": {
"$type": "{27F1E1A1-8D9D-4C3B-BD3A-AFB9762449C0} TransformComponent",
"Id": 8647185006201569915,
"Id": 17921041119350952090,
"Parent Entity": "ContainerEntity",
"Transform Data": {
"UniformScale": 0.05000000074505806
Expand Down
10 changes: 5 additions & 5 deletions Project/Prefabs/black_cube.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@
"$type": "EditorColliderComponent",
"Id": 11542677749643201060,
"ColliderConfiguration": {
"Position": [
0.0,
0.0,
0.02500000037252903
],
"MaterialSlots": {
"Slots": [
{
Expand Down Expand Up @@ -266,6 +261,11 @@
"Id": 16843170302531117928,
"Parent Entity": "Entity_[9165443789406]",
"Transform Data": {
"Translate": [
0.0,
0.0,
-0.02500000037252903
],
"UniformScale": 0.05000000074505806
}
}
Expand Down
10 changes: 5 additions & 5 deletions Project/Prefabs/blue_cube.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@
"$type": "EditorColliderComponent",
"Id": 11542677749643201060,
"ColliderConfiguration": {
"Position": [
0.0,
0.0,
0.02500000037252903
],
"MaterialSlots": {
"Slots": [
{
Expand Down Expand Up @@ -266,6 +261,11 @@
"Id": 16843170302531117928,
"Parent Entity": "Entity_[1152437262922]",
"Transform Data": {
"Translate": [
0.0,
0.0,
-0.02500000037252903
],
"UniformScale": 0.05000000074505806
}
}
Expand Down
10 changes: 10 additions & 0 deletions Project/Prefabs/carrot.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,16 @@
"$type": "EditorVisibilityComponent",
"Id": 11409618612434829098
},
"ROS2FrameEditorComponent": {
"$type": "ROS2FrameEditorComponent",
"Id": 10470715774139935384,
"ROS2FrameConfiguration": {
"Namespace Configuration": {
"Namespace Strategy": 2
},
"Frame Name": ""
}
},
"TransformComponent": {
"$type": "{27F1E1A1-8D9D-4C3B-BD3A-AFB9762449C0} TransformComponent",
"Id": 18391610517830378569,
Expand Down
28 changes: 19 additions & 9 deletions Project/Prefabs/corn.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@
},
"Configuration": {
"Scale": [
0.10199999809265137,
0.10199999809265137,
0.10199999809265137
0.05999999865889549,
0.05999999865889549,
0.05999999865889549
],
"PhysicsAsset": {
"assetId": {
Expand Down Expand Up @@ -260,27 +260,37 @@
"Compute Mass": false,
"Mass": 0.20000000298023224,
"Centre of mass offset": [
-0.0003767325251828879,
-0.0012333319755271077,
-0.0012046174379065633
-0.0002216073771705851,
-0.0007254894007928669,
-0.0007085984689183533
],
"Inertia tensor": [
0.0001341252209385857,
0.000046410106733674183,
0.0,
0.0,
0.0,
0.00013628810120280832,
0.000047158508095890284,
0.0,
0.0,
0.0,
0.00003456683407421224
0.00001196084213006543
]
}
},
"EditorVisibilityComponent": {
"$type": "EditorVisibilityComponent",
"Id": 12802023452715689730
},
"ROS2FrameEditorComponent": {
"$type": "ROS2FrameEditorComponent",
"Id": 16221295209102460307,
"ROS2FrameConfiguration": {
"Namespace Configuration": {
"Namespace Strategy": 2
},
"Frame Name": ""
}
},
"TransformComponent": {
"$type": "{27F1E1A1-8D9D-4C3B-BD3A-AFB9762449C0} TransformComponent",
"Id": 10754169405606624831,
Expand Down
10 changes: 5 additions & 5 deletions Project/Prefabs/green_cube.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@
"$type": "EditorColliderComponent",
"Id": 11542677749643201060,
"ColliderConfiguration": {
"Position": [
0.0,
0.0,
0.02500000037252903
],
"MaterialSlots": {
"Slots": [
{
Expand Down Expand Up @@ -266,6 +261,11 @@
"Id": 16843170302531117928,
"Parent Entity": "Entity_[5420232307294]",
"Transform Data": {
"Translate": [
0.0,
0.0,
-0.02500000037252903
],
"UniformScale": 0.05000000074505806
}
}
Expand Down
10 changes: 5 additions & 5 deletions Project/Prefabs/red_cube.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@
"$type": "EditorColliderComponent",
"Id": 11542677749643201060,
"ColliderConfiguration": {
"Position": [
0.0,
0.0,
0.02500000037252903
],
"MaterialSlots": {
"Slots": [
{
Expand Down Expand Up @@ -266,6 +261,11 @@
"Id": 16843170302531117928,
"Parent Entity": "Entity_[485314884190]",
"Transform Data": {
"Translate": [
0.0,
0.0,
-0.02500000037252903
],
"UniformScale": 0.05000000074505806
}
}
Expand Down
28 changes: 19 additions & 9 deletions Project/Prefabs/tomato.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@
},
"Configuration": {
"Scale": [
0.05199999734759331,
0.05199999734759331,
0.05199999734759331
0.03999999910593033,
0.03999999910593033,
0.03999999910593033
],
"PhysicsAsset": {
"assetId": {
Expand Down Expand Up @@ -141,27 +141,37 @@
"Compute Mass": false,
"Mass": 0.20000000298023224,
"Centre of mass offset": [
-0.00014860315422993153,
0.00003289386222604662,
0.0016063579823821783
-0.00011431012535467744,
0.00002530297206249088,
0.001235659932717681
],
"Inertia tensor": [
0.00004531557351583615,
0.000026813961085281335,
0.0,
0.0,
0.0,
0.0000491143437102437,
0.000029061740860925056,
0.0,
0.0,
0.0,
0.000052105468057561666
0.00003083164119743742
]
}
},
"EditorVisibilityComponent": {
"$type": "EditorVisibilityComponent",
"Id": 4910412103323004378
},
"ROS2FrameEditorComponent": {
"$type": "ROS2FrameEditorComponent",
"Id": 1369596616863894338,
"ROS2FrameConfiguration": {
"Namespace Configuration": {
"Namespace Strategy": 2
},
"Frame Name": ""
}
},
"TransformComponent": {
"$type": "{27F1E1A1-8D9D-4C3B-BD3A-AFB9762449C0} TransformComponent",
"Id": 14610634284382918424,
Expand Down
10 changes: 10 additions & 0 deletions Project/Prefabs/toy_box.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,16 @@
"$type": "EditorVisibilityComponent",
"Id": 9097636690885332082
},
"ROS2FrameEditorComponent": {
"$type": "ROS2FrameEditorComponent",
"Id": 5197297354537371193,
"ROS2FrameConfiguration": {
"Namespace Configuration": {
"Namespace Strategy": 2
},
"Frame Name": ""
}
},
"TransformComponent": {
"$type": "{27F1E1A1-8D9D-4C3B-BD3A-AFB9762449C0} TransformComponent",
"Id": 4486871887464016633,
Expand Down
18 changes: 18 additions & 0 deletions ros2_ws/src/rai_mani/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>rai_mani</name>
<version>0.0.0</version>
<description>TODO: Package description</description>
<maintainer email="kacper.dabrowski@robotec.ai">kdabrowski</maintainer>
<license>TODO: License declaration</license>

<test_depend>ament_copyright</test_depend>
<test_depend>ament_flake8</test_depend>
<test_depend>ament_pep257</test_depend>
<test_depend>python3-pytest</test_depend>

<export>
<build_type>ament_python</build_type>
</export>
</package>
Empty file.
25 changes: 25 additions & 0 deletions ros2_ws/src/rai_mani/rai_mani/benchmark.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import rclpy

from rai_mani.manager import RaiBenchmarkManager

from rai_mani.scenarios.move_to_the_left import MoveToTheLeft
from rai_mani.scenarios.place_on_top import PlaceOnTop
from rai_mani.scenarios.replace_types import ReplaceTypes
from rai_mani.scenarios.longest_object import LongestObject

from rclpy.executors import MultiThreadedExecutor

def main(args=None):
rclpy.init(args=args)

manager = RaiBenchmarkManager([PlaceOnTop, LongestObject, MoveToTheLeft, ReplaceTypes], list(range(4)))

executor = MultiThreadedExecutor(2)
executor.add_node(manager)
executor.spin()

manager.destroy_node()
rclpy.shutdown()

if __name__ == '__main__':
main()
Loading