Skip to content

Commit

Permalink
Fix compile warning (#663)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <ichen@openrobotics.org>
  • Loading branch information
iche033 authored Jul 8, 2024
1 parent 707aa69 commit fa53310
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bullet-featherstone/src/JointFeatures.cc
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ double JointFeatures::GetJointForce(
// According to the documentation in btMultibodyLink.h,
// m_axesTop[0] is the joint axis for revolute joints.
Eigen::Vector3d axis = convert(link.getAxisTop(0));
math::Vector3 axis_converted(axis[0], axis[1], axis[2]);
math::Vector3d axis_converted(axis[0], axis[1], axis[2]);
btVector3 angular = feedback->m_reactionForces.getAngular();
math::Vector3<double> angularTorque(
math::Vector3d angularTorque(
angular.getX(),
angular.getY(),
angular.getZ());
Expand All @@ -218,9 +218,9 @@ double JointFeatures::GetJointForce(
else if (link.m_jointType == btMultibodyLink::ePrismatic)
{
auto axis = convert(link.getAxisBottom(0));
math::Vector3 axis_converted(axis[0], axis[1], axis[2]);
math::Vector3d axis_converted(axis[0], axis[1], axis[2]);
btVector3 linear = feedback->m_reactionForces.getLinear();
math::Vector3<double> linearForce(
math::Vector3d linearForce(
linear.getX(),
linear.getY(),
linear.getZ());
Expand Down

0 comments on commit fa53310

Please sign in to comment.