|
@@ -17,7 +17,7 @@ func Label() string {
|
|
|
|
|
|
func Rule(data *pjisuv_msgs.PerceptionObjects, param pjisuv_param.PjisuvParam) string {
|
|
|
for _, obj := range data.Objs {
|
|
|
- if math.Abs(float64(obj.Y)) <= 1.5 && obj.X >= 0 && obj.X <= 6 && param.AngularVelocityZOfCicvLocation < 5.5 && param.VelocityXOfCicvLocation >= 0.5 {
|
|
|
+ if math.Abs(float64(obj.Y)) <= 1.5 && obj.X >= 0 && obj.X <= 6 && param.AngularVelocityZOfCicvLocation < 5.5 && math.Abs(param.VelocityXOfCicvLocation) >= 0.5 {
|
|
|
|
|
|
|
|
|
return "TargetAhead"
|