UPDATE: new range
Browse files- mppi/task/bb1d_track.py +1 -1
mppi/task/bb1d_track.py
CHANGED
|
@@ -422,7 +422,7 @@ class BBTrack:
|
|
| 422 |
cost = (target_energy - energy)**2
|
| 423 |
|
| 424 |
# Board position boundary constraints
|
| 425 |
-
cost += (torch.relu(0.
|
| 426 |
|
| 427 |
|
| 428 |
|
|
|
|
| 422 |
cost = (target_energy - energy)**2
|
| 423 |
|
| 424 |
# Board position boundary constraints
|
| 425 |
+
cost += (torch.relu(0.3 - board_pos) + torch.relu(board_pos - 0.8)) * 10
|
| 426 |
|
| 427 |
|
| 428 |
|