Files
ParkingRobot/Simulation/Commands/MySimulationTests.cs
T

31 lines
866 B
C#
Raw Normal View History

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);
// }
}