... | ... | @@ -301,7 +301,7 @@ if __name__ == '__main__': |
|
|
main()
|
|
|
```
|
|
|
|
|
|
Extend that class so that you keep going to a new random location, either when the robot has reached its current location, or when it is failing to reach it, instead of basing yourself on time, you should check using feedback if the robot is moving.
|
|
|
Extend that class so that you keep going to a new random location, either when the robot has reached its current location, or when it is failing to reach it, instead of basing yourself on time, you should check using feedback if the robot is moving. There are at least two approaches to solve that problem, one is much easier to implement than the other, so look carefully at the message structure.
|
|
|
|
|
|
### C++
|
|
|
|
... | ... | @@ -441,7 +441,7 @@ int main(int argc, char * argv[]) |
|
|
}
|
|
|
```
|
|
|
|
|
|
Extend that class so that you keep going to a new random location, either when the robot has reached its current location, or when it is failing to reach it, instead of basing yourself on time, you should check using feedback if the robot is moving.
|
|
|
Extend that class so that you keep going to a new random location, either when the robot has reached its current location, or when it is failing to reach it, instead of basing yourself on time, you should check using feedback if the robot is moving. There are at least two approaches to solve that problem, one is much easier to implement than the other, so look carefully at the message structure.
|
|
|
|
|
|
Demonstration
|
|
|
--------------
|
... | ... | |