Fixing initialization of linear velocity output commands in simple car and unicycle models.

master
Thomas Denewiler 2020-03-04 19:35:58 -08:00
parent f45dfee6df
commit a9a4d51b6b
No known key found for this signature in database
GPG Key ID: D9CDF9EE76A3C42E
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ class SimpleCarModel : public BaseRobotSE2
{
assert(u.size() == getInputDimension());
twist.linear.x = u[0];
twist.linear.y = twist.linear.y = 0;
twist.linear.y = twist.linear.z = 0;
twist.angular.z = u[1]; // warning, this is the angle and not the angular vel
twist.angular.x = twist.angular.y = 0;

View File

@ -72,7 +72,7 @@ class UnicycleModel : public BaseRobotSE2
{
assert(u.size() == getInputDimension());
twist.linear.x = u[0];
twist.linear.y = twist.linear.y = 0;
twist.linear.y = twist.linear.z = 0;
twist.angular.z = u[1];
twist.angular.x = twist.angular.y = 0;