Add camera spawning functionality and update world configuration

This commit is contained in:
Даниил Грабарь
2026-04-13 17:37:24 +03:00
parent 2dfa8f1c94
commit cd450a3476
7 changed files with 118 additions and 32 deletions
@@ -32,6 +32,15 @@
</ros>
</device>
<device reference="example_camera" type="Camera">
<ros>
<topicName>/camera_example/color</topicName>
<updateRate>30</updateRate>
<alwaysOn>True</alwaysOn>
<frameName>example_camera</frameName>
</ros>
</device>
<device reference="camera_depth" type="RangeFinder">
<ros>
<topicName>/camera/depth</topicName>
+13 -2
View File
@@ -7,8 +7,8 @@ EXTERNPROTO "https://raw.githubusercontent.com/cyberbotics/webots/R2025a/project
WorldInfo {
}
Viewpoint {
orientation -0.20135401485081894 0.14705590432610455 0.9684168119700772 1.9104172436184537
position 2.126114183750861 -6.172386590547907 2.2530769187603243
orientation -0.28913430413481667 0.20676337530925004 0.9346926023047372 1.96317584288795
position 2.0700764329273156 -5.621201880809646 3.39425616182994
}
TexturedBackground {
}
@@ -17,3 +17,14 @@ TexturedBackgroundLight {
RectangleArena {
floorSize 5 5
}
Robot {
translation -1.26 0 0.77
children [
Camera {
name "example_camera"
}
]
name "example_camera_robot"
controller "<extern>"
}