How can you fly the plane provided in plane_demo.world? [closed]

asked 2014-09-15 15:40:39 -0500

an gravatar image

updated 2014-09-15 17:04:48 -0500

I have created a ros node that takes inputs from the keyboard, to distinguish between going forward/backward, turning left/right, and going up/down.

I can control the forward/backward easily (I just publish a twist message with the linear x component set to either a positive or negative number).

I cannot figure out how to control the other things, though. To turn the plane, I allow wing 5 (vertical stabilizer, which controls yaw) to revolve around the z axis, and I publish twist messages to that link. This "works," in that I can clearly see wing5 rotating around the z axis. Now, logically, this should affect the direction that the plane travel but I dont understand how to implement that. For example, I tried setting wing5 to rotate, and then setting the plane's linear x velocity... however, this just moves the entire model in the +x direction, instead of moving in a direction that makes sense with the way wing5 is positioned.

How do I control the plane's pitch and yaw?

I see videos on youtube by John Hsu, flying this model around, so I know it has been done. Any help would be appreciated.

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant. Please see http://wiki.ros.org/Support for more details. by tfoote
close date 2014-12-29 13:48:50.687530

Comments

You might need to post this question on http://answers.gazebosim.org/questions

SL Remy gravatar image SL Remy  ( 2014-09-16 07:34:57 -0500 )edit