添加单车底盘仿真平台并完善运动控制与夹臂功能
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using MyParking.Shared;
|
||||
using MyParking.Simulation.Core;
|
||||
|
||||
namespace MyParking.Simulation.Commands;
|
||||
|
||||
/// <summary>
|
||||
/// 我自己增加的停车机器人仿真测试动作。
|
||||
/// </summary>
|
||||
public static class MySimulationTests
|
||||
{
|
||||
/// <summary>
|
||||
/// 测试车辆以0.2m/s向车体左侧运动。
|
||||
/// </summary>
|
||||
// [SimulationAction(
|
||||
// key: "move-left-020",
|
||||
// displayName: "向左移动0.2m/s",
|
||||
// group: "我的测试",
|
||||
// order: 10)]
|
||||
// public static bool MoveLeft(
|
||||
// SimulationVehicle vehicle)
|
||||
// {
|
||||
// var command = new ChassisCommand(
|
||||
// vehicle.VehicleId,
|
||||
// new Twist2D(
|
||||
// vxMetersPerSecond: 0.0,
|
||||
// vyMetersPerSecond: 0.2,
|
||||
// omegaRadiansPerSecond: 0.0));
|
||||
|
||||
// return vehicle.ApplyCommand(command);
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user