2
0
Эх сурвалжийг харах

changed driving axle to front, added IMU

Signed-off-by: Piotr Jaroszek <[email protected]>
Piotr Jaroszek 2 жил өмнө
parent
commit
44ec581b5a

+ 26 - 3
Project/Assets/Importer/apple_kraken.prefab

@@ -2231,6 +2231,24 @@
                     "Id": 12921665263434500262,
                     "Parent Entity": "ContainerEntity"
                 },
+                "Component_[12958874384206631254]": {
+                    "$type": "GenericComponentWrapper",
+                    "Id": 12958874384206631254,
+                    "m_template": {
+                        "$type": "ROS2ImuSensorComponent",
+                        "SensorConfiguration": {
+                            "Publishers": {
+                                "sensor_msgs::msg::Imu": {
+                                    "Type": "sensor_msgs::msg::Imu",
+                                    "Topic": "imu",
+                                    "QoS": {
+                                        "Reliability": 1
+                                    }
+                                }
+                            }
+                        }
+                    }
+                },
                 "Component_[1306489892602480225]": {
                     "$type": "GenericComponentWrapper",
                     "Id": 1306489892602480225,
@@ -2302,15 +2320,15 @@
                                         "Entity_[75449580609756]"
                                     ],
                                     "WheelRadius": 0.30000001192092896,
-                                    "IsSteering": true
+                                    "IsSteering": true,
+                                    "IsDrive": true
                                 },
                                 {
                                     "AxleWheels": [
                                         "Entity_[75479645380828]",
                                         "Entity_[75419515838684]"
                                     ],
-                                    "WheelRadius": 0.30000001192092896,
-                                    "IsDrive": true
+                                    "WheelRadius": 0.30000001192092896
                                 }
                             ],
                             "Track": 0.6000000238418579
@@ -2318,12 +2336,17 @@
                         "DriveModel": {
                             "SteeringPID": {
                                 "P": 500.0,
+                                "I": 100.0,
                                 "Output limit": 200.0
                             },
                             "SpeedPID": {
                                 "P": 100.0,
+                                "I": 100.0,
                                 "Output limit": 100.0
                             }
+                        },
+                        "VehicleModelLimits": {
+                            "SteeringLimit": 0.5
                         }
                     }
                 },

+ 2 - 2
Project/Levels/Main/Main.prefab

@@ -628,7 +628,7 @@
                     "Controller": {
                         "Configuration": {
                             "Field of View": 55.0,
-                            "EditorEntityId": 7848787809481671978
+                            "EditorEntityId": 5405129262793911689
                         }
                     }
                 },
@@ -7826,7 +7826,7 @@
                                 },
                                 "assetHint": "reflectionprobes/refprobmain__c4ee43e2-3ffe-4955-9dee-679ca04c2a53__iblspecularcm256.dds.streamingimage"
                             },
-                            "EntityId": 9176078722263708176
+                            "EntityId": 17452170519217261357
                         }
                     },
                     "useBakedCubemap": false,