亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? gear.cpp

?? UAV 自動駕駛的
?? CPP
字號:
/* -*- indent-tabs-mode:T; c-basic-offset:8; tab-width:8; -*- vi: set ts=8: * $Id: Gear.cpp,v 2.0 2002/09/22 02:07:31 tramm Exp $ * * (c) Aaron Kahn * (c) Trammell Hudson * * This is a collision/landing gear model. * * The basis of this model is the vertial displacement method. * The idea is that if a collision is detected between the point, * and a surface, then the displacement is computed.  The is then  * used to compute a force based on Hook's law. * * To allow for in-elastic collisions, a damping constant can be given. * * For now, this function assumes that the contact surface is the ground * (for landing gear).  For this assumption, the ground is taken as 0 * altitude. * ************* * *  This file is part of the autopilot simulation package. * *  For more details: * *	http://autopilot.sourceforge.net/ * *  Autopilot is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) any later version. * *  Autopilot is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU General Public License for more details. * *  You should have received a copy of the GNU General Public License *  along with Autopilot; if not, write to the Free Software *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA * */#include <cstdio>#include <cmath>#include <cstdlib>#include <cstring>#include "Gear.h"#include <mat/Matrix.h>#include <mat/Vector.h>#include <mat/Vector_Rotate.h>#include <mat/Quat.h>#include <mat/Frames.h>namespace sim{using namespace libmat;using namespace std;/* *  Default friction parameters. * * ANSI C++98 blows -- WTF can't these be in the class definition? */const double	Gear::default_mu_x	=   0.8;const double	Gear::default_mu_y	=   0.8;const double	Gear::default_k		= 120.0;/* * * For more information, see the structure definitions below. */voidGear::step(	Forces *		cg,	const Rotate<Frame::Body,Frame::NED> &	cBE,	const Rotate<Frame::NED,Frame::Body> &	cEB,	const Matrix<3,3> &	wx){	// compute the position of wheel in earth frame	Position<Frame::NED>	Pw_e( cEB * this->cg2point );	Pw_e[2] += cg->NED[2];	// compute the displacement of the contact force under ground	double delta = Pw_e[2];	// underground?  We don't change the values at all	if( delta < 0.0 )		return;	// make the true position of the wheel (earth frame)	Pw_e[2] = 0.0;	// position of wheel in body frame	// "                                " (body frame)	const Position<Frame::Body>	Pw_b( cBE * Pw_e );	// compute the velocity of the wheel (body frame)	Velocity<Frame::Body>		Vw_b(		Velocity<Frame::Body>( wx * Pw_b.v ) + cg->uvw	);	// "                              " (earth frame)	Velocity<Frame::NED>		Vw_e( cEB * Vw_b );	// if the wheel has steering ability#if 0	if( this->rotation != 0.0 )	{		// rotate the body velocity by the rotation of the wheel		// (+ rotation about Z body axis)		 tempV1( rotate2( cg->uvw, this->rotation ) );		// recompute the velocity of wheel in body frame		Vw_b = wx * Pw_b + tempV1;		// "                               " earth frame		Vw_e = cEB * Vw_b;	}#endif	// compute the magnitude of the vertical force on the wheels	// (earth frame)	Force<Frame::NED> Fw_e;	Fw_e[2] = this->k*delta + this->b*Vw_e[2];	// compute the lateral forces on the wheel in earth frame	// X	if( Vw_e[0] != 0.0 )		Fw_e[0] = -this->mu_x*Fw_e[2]*Vw_e[0]/fabs(Vw_e[0]);	else		Fw_e[0] = 0.0;	// Y	if( Vw_e[1] != 0.0 )		Fw_e[1] = -this->mu_y*Fw_e[2]*Vw_e[1]/fabs(Vw_e[1]);	else		Fw_e[1] = 0.0;	// take care of the sign of the vertical force on the wheel in earth frame	Fw_e[2] *= -1.0;	// compute the wheel force in body frame for output	const Force<Frame::Body> F( cBE * Fw_e );	// compute the moment in earth frame	// compute the moment in body frame for output	const Moment<Frame::NED> r( cross( Fw_e.v, Pw_e.v * -1.0 ) );	const Moment<Frame::Body> M( cBE * r );	// Add our force and moment to the CG	cg->F += F;	cg->M += M;	if( this->max_force < 0 )		return;	// Check for maximum force exceeded	const double magnitude = F.mag2();	if( magnitude > this->max_force )		cerr			<< this->name << ": "			<< "Force=" << magnitude			<< " exceeds max " <<  this->max_force			<< endl;}/** * Helper function to produce four points around the CG * that act as "skids" or landing gear.  Returns a * vector of gear that can be inserted into the model's * list of contact points. */const std::vector<Gear>Gear::skids(	const Forces *		cg,	double			skid_strength,	double			length,	double			width,	double			offset,	double			height,	double			k,	double			mu_x,	double			mu_y){	std::vector<Gear>	skids;	const double		front		= offset + length / 2.0;	const double		back		= offset - length / 2.0;	const double		side		= width / 2.0;	const double		skid_front	= (front  - cg->fs_cg) / 12.0;	const double		skid_back	= (back   - cg->fs_cg) / 12.0;	const double		skid_side	= (side              ) / 12.0;	const double		skid_height	= (height            ) / 12.0;	skids.push_back( Gear(		"right front",		skid_strength,		skid_front,		skid_side,		skid_height,		k,		mu_x,		mu_y	));	skids.push_back( Gear(		"right back",		skid_strength,		skid_back,		skid_side,		skid_height,		k,		mu_x,		mu_y	));	skids.push_back( Gear(		"left front",		skid_strength,		skid_front,		-skid_side,		skid_height,		k,		mu_x,		mu_y	));	skids.push_back( Gear(		"left back",		skid_strength,		skid_back,		-skid_side,		skid_height,		k,		mu_x,		mu_y	));	return skids;}/* *  Rotor disc is very fragile.  Touching it at all causes * it to "break". */const std::vector<Gear>Gear::rotor(	const Forces *		cg,	double			radius,	double			fs,	double			wl,	double			k,	double			mu_x,	double			mu_y){	std::vector<Gear>	rotor;	rotor.push_back( Gear(		"rotor front",		0.1,		fs - cg->fs_cg + radius,		0.0,		wl - cg->wl_cg,		k,		mu_x,		mu_y	));	rotor.push_back( Gear(		"rotor left",		0.1,		fs - cg->fs_cg,		-radius,		wl - cg->wl_cg,		k,		mu_x,		mu_y	));	rotor.push_back( Gear(		"rotor right",		0.1,		fs - cg->fs_cg,		radius,		wl - cg->wl_cg,		k,		mu_x,		mu_y	));	return rotor;}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美性生活久久| 欧美专区日韩专区| 日日夜夜一区二区| 一区二区三区在线观看动漫| 国产清纯美女被跳蛋高潮一区二区久久w| 欧美一区二区三区在线观看视频| 欧美日韩精品一区二区| 欧美影视一区在线| 欧美日韩黄色一区二区| 91麻豆精品国产91久久久久| 欧美美女一区二区在线观看| 欧美日本在线视频| 日韩欧美一区二区久久婷婷| 欧美精品一区二区三区一线天视频| 日韩一级高清毛片| 国产三级精品三级在线专区| 国产精品久久三区| 一区二区三区.www| 日本欧美韩国一区三区| 国产九色sp调教91| 91玉足脚交白嫩脚丫在线播放| 欧洲人成人精品| 精品久久免费看| 亚洲视频一区在线| 日日夜夜一区二区| 从欧美一区二区三区| 欧美在线色视频| 久久嫩草精品久久久精品| 日韩久久一区二区| 日韩电影在线观看电影| 国产aⅴ综合色| 欧美日本精品一区二区三区| 日韩欧美电影一二三| 最新成人av在线| 免费在线看成人av| av毛片久久久久**hd| 欧美亚洲国产怡红院影院| 日韩美女视频一区二区在线观看| 国产精品理伦片| 日韩av不卡在线观看| 99久久婷婷国产综合精品| 91精品黄色片免费大全| 国产精品三级视频| 美日韩黄色大片| 制服丝袜激情欧洲亚洲| 久久亚洲影视婷婷| 亚洲成av人在线观看| 成人视屏免费看| 欧美电影免费观看高清完整版| 亚洲美女电影在线| 国产成人午夜片在线观看高清观看| 欧美在线一二三| 中文字幕日韩精品一区| 激情综合色播激情啊| 欧美日韩一级视频| 一区二区在线观看免费 | 欧美日韩精品一区二区三区蜜桃| 久久免费午夜影院| 久久黄色级2电影| 欧美欧美午夜aⅴ在线观看| 最新中文字幕一区二区三区| 国产一区二区美女诱惑| 日韩一区二区免费高清| 丝袜诱惑亚洲看片| 欧美日本国产视频| 图片区日韩欧美亚洲| 色婷婷国产精品| 1000精品久久久久久久久| 成人午夜碰碰视频| 国产精品丝袜一区| 成人av在线看| 日韩一区有码在线| 色综合久久中文综合久久97| 国产精品国产三级国产a| 成人免费va视频| 亚洲日本在线看| 日本二三区不卡| 亚洲国产一区二区a毛片| 91福利社在线观看| 婷婷综合另类小说色区| 91麻豆精品国产| 九九国产精品视频| 久久久影视传媒| 成人在线一区二区三区| 国产精品国产三级国产aⅴ中文| 波多野结衣亚洲一区| 亚洲日本乱码在线观看| 欧美揉bbbbb揉bbbbb| 美日韩一级片在线观看| 国产日韩精品视频一区| 99久久伊人精品| 五月婷婷久久综合| 26uuu色噜噜精品一区| 成人国产一区二区三区精品| 尤物视频一区二区| 日韩天堂在线观看| 成人一区二区视频| 香蕉影视欧美成人| 久久精品人人做人人爽97| 97超碰欧美中文字幕| 香蕉久久夜色精品国产使用方法| 日韩欧美国产综合| 99精品视频在线观看| 热久久免费视频| 国产精品久久免费看| 精品视频在线免费| 国产激情91久久精品导航| 亚洲伦理在线精品| 精品国产一区二区亚洲人成毛片 | 久久久久久久精| 91国内精品野花午夜精品| 日本视频中文字幕一区二区三区| 久久一区二区三区四区| 欧美吻胸吃奶大尺度电影| 国产老女人精品毛片久久| 一区二区三区在线视频免费| 精品久久一二三区| 欧美日韩亚洲另类| 99热在这里有精品免费| 精品一区二区三区香蕉蜜桃| 亚洲综合色噜噜狠狠| 国产精品你懂的| 精品国产乱码久久久久久图片 | 国产精品久久久久桃色tv| 欧美在线三级电影| 波多野结衣精品在线| 麻豆精品久久精品色综合| 亚洲愉拍自拍另类高清精品| 久久精品日产第一区二区三区高清版 | 日韩欧美精品在线视频| 91久久精品一区二区| 高清日韩电视剧大全免费| 久久精品国产精品亚洲精品| 亚洲成人av一区| 亚洲欧美一区二区不卡| 国产精品久久毛片a| 久久久久久**毛片大全| 日韩欧美一区电影| 日韩免费观看2025年上映的电影| 欧美色图免费看| 欧美亚洲愉拍一区二区| 99re这里只有精品首页| 成人蜜臀av电影| 不卡视频一二三| 成人va在线观看| 风间由美中文字幕在线看视频国产欧美| 看片的网站亚洲| 国内精品自线一区二区三区视频| 日本视频一区二区三区| 日韩成人免费看| 免费在线视频一区| 久久不见久久见中文字幕免费| 午夜视频一区在线观看| 三级一区在线视频先锋| 三级不卡在线观看| 麻豆国产91在线播放| 国产一区二区伦理片| 国产成人综合在线| 91性感美女视频| 欧美伦理电影网| 精品日韩一区二区三区 | 国产·精品毛片| 不卡的电影网站| 欧美性感一类影片在线播放| 欧美色手机在线观看| 日韩一区二区在线看| 欧美一区二区久久| 国产三级精品三级| 亚洲精品日日夜夜| 免费xxxx性欧美18vr| 国产主播一区二区| 97久久精品人人做人人爽50路| 色哟哟亚洲精品| 欧美一级片免费看| 欧美国产乱子伦| 亚洲图片欧美色图| 国产精品一区二区免费不卡| 国产91丝袜在线播放| 在线观看视频欧美| 精品久久久网站| 一区二区三区在线观看动漫 | 国产精品国产自产拍高清av| 一区二区三区欧美| 国产综合久久久久久鬼色 | 极品尤物av久久免费看| 成人h版在线观看| 欧美精品一级二级| 国产欧美va欧美不卡在线| 亚洲影视在线观看| 国产精品一区在线观看乱码 | 99久久精品国产一区| 欧美午夜精品一区二区三区| 久久综合九色综合97婷婷女人 | 国产精品网站一区| 午夜久久久久久电影| 丁香亚洲综合激情啪啪综合| 精品视频在线免费看| 亚洲欧洲韩国日本视频| 精品在线播放午夜| 欧美日韩精品一区二区三区蜜桃|