Home | Tutorials | Wiki | Issues
Ask Your Question
0

How to get the force applied to a link?

asked 2018-01-09 16:50:16 -0600

schulze_18 gravatar image

updated 2018-01-09 16:51:13 -0600

Hello everyone,

I trying to control a quadrotor in gazebo but I'm having some trouble. I'm able to control the velocity of each rotors using a PID+SetForce(), but the quadrotor doens't take off. So, I want to monitor the resulting force applied to the base link of the quadrotor to find the problem, if it doens't fly because I didnt apply a control yet or because the rotors are rotating without applying any force to the body of the quadrotor.

How can I get the resulting force applied to the base link?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2018-11-14 09:26:42 -0600

nkoenig gravatar image
edit flag offensive delete link more
0

answered 2018-11-13 05:42:48 -0600

AlberSaber gravatar image

updated 2018-11-13 05:43:25 -0600

math::Vector3 force(0,0,100);

model->GetLink("baselink")->SetForce(force);

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-01-09 16:50:16 -0600

Seen: 526 times

Last updated: Nov 14