Skip to content
Snippets Groups Projects
Commit 69b3c88d authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[wip/talos-data] add patch-aa

to fix build with gazebo 9
parent 9d88ab68
Branches
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@
ORG= pyrene-dev
NAME= talos-data
VERSION= 1.0.1
PKGREVISION= 1
ROSNAME= $(subst -,_,${NAME})
PKGNAME= ${NAME}-${VERSION}
......
SHA1 (talos_data-1.0.1.tar.gz) = 9c9a0cb97d48db7127e4a2538032cbb68b259c94
RMD160 (talos_data-1.0.1.tar.gz) = 25767abeb2f39bda9958c7e354a16de6b9ac635e
Size (talos_data-1.0.1.tar.gz) = 8827419 bytes
SHA1 (patch-aa) = cf07549de4e675f65d4b92ec27d3caca7828db7b
fix for Gazebo 9
--- src/SpringPlugin.cc.orig 2019-10-22 09:57:51.000000000 +0200
+++ src/SpringPlugin.cc 2019-10-31 19:11:11.766354569 +0100
@@ -77,7 +77,11 @@
common::Time stepTime = currTime - this->prevUpdateTime;
this->prevUpdateTime = currTime;
+#if GAZEBO_MAJOR_VERSION < 9
double pos = this->jointExplicit->GetAngle(0).Radian();
+#else
+ double pos = this->jointExplicit->Position(0);
+#endif
double vel = this->jointExplicit->GetVelocity(0);
double force = -this->kpExplicit * pos
-this->kdExplicit * vel;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment