We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a378dc commit 1c783c5Copy full SHA for 1c783c5
2 files changed
src/lib/rostime_speed
@@ -0,0 +1 @@
1
+Subproject commit 3b16272bd6b9b3c09a731c0b172f33ce4d4e70d1
src/mower_simulation/src/SimRobot.cpp
@@ -133,7 +133,10 @@ void SimRobot::SimulationStep(const ros::TimerEvent& te) {
133
return;
134
}
135
// Update Position if not in emergency mode
136
- if (!emergency_latch_) {
+ if (emergency_latch_) {
137
+ last_noisy_vx_ = 0.0;
138
+ last_noisy_vr_ = 0.0;
139
+ } else {
140
double time_diff_s = (now - last_update_).toSec();
141
double noisy_vx = vx_ + linear_speed_noise(generator);
142
double noisy_vr = vr_ + angular_speed_noise(generator);
0 commit comments