VTK 三维场景的基本要素(相机) vtkCamera 相机的运动

 相机的运动

当物体在处于静止位置时,相机可以在物体周围移动,摄取不同角度的图像 

 

移动

  移动分为相机的移动,和相机焦点的移动;移动改变了相机相对焦点的位置,离焦点更近或者更远;这样就会改变被渲染的物体在视野中的部分;
  相机的移动可以有水平上的移动,垂直方向的移动,前后的移动;

 vtkCamera::Dolly(double value);将相机与焦点的距离除以给定的推拉值。使用大于1的值向焦点推拉,
使用小于1的值远离焦点推拉。(缩放)

旋转


相机的旋转:是相机在以焦点为中心的圆球面上移动,因为相机可以水平旋转和垂直旋转;水平旋转就是在相机围绕球心过朝上方向这个轴旋转,也可以说是在球面上的维度进行旋转,但相机的镜头始终指向焦点;水平旋转就是在相机绕球面上的经线向上或者向下旋转;

围绕投影方向旋转相机。这将使摄影机绕其轴旋转:

 vtkCamera::Roll(double angle);

  围绕以焦点为中心的视图向上矢量旋转相机

请注意,视图向上矢量是通过SetViewUp设置的,不一定垂直于投影方向。结果是相机的水平旋转(纬度)

  vtkCamera::Azimuth(double angle);

    使用焦点作为旋转中心,围绕投影方向的负值与视图向上向量的叉积旋转相机。结果是场景的垂直旋转(经度)

    vtkCamera::Elevation(double angle);

    使用相机的位置作为旋转中心,围绕视图向上矢量旋转焦点

请注意,视图向上矢量是通过SetViewUp设置的,不一定垂直于投影方向。结果是场景的水平旋转(纬度)。

 vtkCamera::Yaw(double angle);

    使用相机的位置作为旋转中心,围绕视图向上矢量和投影方向的叉积旋转焦点。

结果是摄影机垂直旋转(经度)。

vtkCamera::Pitch(double angle);

缩放:

    vtkCamera::Zoom(double factor);在透视模式下,将视角减小指定的因子。在平行模式下,将平行比例减小指定的因子。
值大于1表示放大,
值小于1表示缩小@注意:当UseExplicitProjectionTransformMatrix为true时,
将忽略此设置。

    重置相机参数 :
 

void ResetCamera();

视频:

相机的旋转:

视频代码:

注意这个只有初始时,旋转是对的;一但旋转后,再旋转可能是错的;

#pragma once
//#include "vtk_include.h"
#include <vtkAppendFilter.h>
#include <vtkCamera.h>
#include <vtkCellArray.h>
#include <vtkConeSource.h>
#include <vtkContourFilter.h>
#include <vtkCubeSource.h>
#include <vtkDataSetMapper.h>
#include <vtkImplicitModeller.h>
#include <vtkLODActor.h>
#include <vtkNamedColors.h>
#include <vtkNew.h>
#include <vtkPoints.h>
#include <vtkPolyData.h>
#include <vtkPolyDataMapper.h>
#include <vtkProperty.h>
#include <vtkRenderWindow.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkRenderer.h>
#include <vtkRotationalExtrusionFilter.h>
#include <vtkSphereSource.h>
#include <vtkTextActor.h>
#include <vtkTextProperty.h>
#include <vtkTransform.h>
#include <vtkTransformFilter.h>
#include <vtkTransformPolyDataFilter.h>
#include <vtkWarpTo.h>
#include <algorithm>
#include <vtkInteractorStyleTrackballCamera.h>
#include <array>#include<stdio.h>
#include<iostream>
using namespace std;class Normal3DCameraStyle : public vtkInteractorStyleTrackballCamera
{
public:static Normal3DCameraStyle* New();vtkTypeMacro(Normal3DCameraStyle, vtkInteractorStyleTrackballCamera);//virtual void OnLeftButtonDown(void);//virtual void OnLeftButtonUp(void);//virtual void OnRightButtonDown(void);//virtual void OnRightButtonUp(void);//virtual void OnMiddleButtonDown(void);//virtual void OnMiddleButtonUp(void);//virtual void OnMouseWheelForward(void);//virtual void OnMouseWheelBackward(void);//virtual void OnMouseMove(void);//	/**//* OnChar is triggered when an ASCII key is pressed. Some basic key presses//* are handled here ('q' for Quit, 'p' for Pick, etc)//*///virtual void OnChar();OnKeyDown is triggered by pressing any key (identical to OnKeyPress()).An empty implementation is provided. The behavior of this function shouldbe specified in the subclass.//virtual void OnKeyDown();OnKeyUp is triggered by releaseing any key (identical to OnKeyRelease()).An empty implementation is provided. The behavior of this function shouldbe specified in the subclass.//virtual void OnKeyUp();OnKeyPress is triggered by pressing any key (identical to OnKeyDown()).An empty implementation is provided. The behavior of this function shouldbe specified in the subclass.//virtual void OnKeyPress();OnKeyRelease is triggered by pressing any key (identical to OnKeyUp()).An empty implementation is provided. The behavior of this function shouldbe specified in the subclass.//virtual void OnKeyRelease();void  OnKeyPress(){switch (this->Interactor->GetKeyCode()){case 'a':case 'A':cout << "A " << endl;m_Camera->Azimuth(1);break;case 'b':case 'B':m_Camera->Roll(1);cout << "b " << endl;break;case 'v':case 'V':m_Camera->Elevation(1);cout << "v " << endl;break;}m_RenderWindows->Render();}public:vtkCamera * m_Camera;vtkRenderWindow* m_RenderWindows;
};vtkStandardNewMacro(Normal3DCameraStyle);//必须加!!!!void main(){vtkNew<vtkNamedColors> colors;// Set the colors.std::array<unsigned char, 4> azArrowColor{ {255, 77, 77} };colors->SetColor("AzimuthArrowColor", azArrowColor.data());std::array<unsigned char, 4> elevArrowColor{ {77, 255, 77} };colors->SetColor("ElevationArrowColor", elevArrowColor.data());std::array<unsigned char, 4> rollArrowColor{ {255, 255, 77} };colors->SetColor("RollArrowColor", rollArrowColor.data());std::array<unsigned char, 4> spikeColor{ {255, 77, 255} };colors->SetColor("SpikeColor", spikeColor.data());// Set the background color.std::array<unsigned char, 4> bkg{ {26, 51, 102} };colors->SetColor("BkgColor", bkg.data());// Create the RenderWindow, Renderer and both ActorsvtkNew<vtkRenderer> ren1;vtkNew<vtkRenderWindow> renWin;renWin->AddRenderer(ren1);vtkNew<vtkRenderWindowInteractor> iren;iren->SetRenderWindow(renWin);// create a camera modelvtkNew<vtkConeSource> camCS;camCS->SetHeight(1.5);camCS->SetResolution(12);camCS->SetRadius(0.4);vtkNew<vtkCubeSource> camCBS;camCBS->SetXLength(1.5);camCBS->SetZLength(0.8);camCBS->SetCenter(0.4, 0, 0);vtkNew<vtkAppendFilter> camAPD;camAPD->AddInputConnection(camCS->GetOutputPort());camAPD->AddInputConnection(camCBS->GetOutputPort());vtkNew<vtkDataSetMapper> camMapper;camMapper->SetInputConnection(camAPD->GetOutputPort());vtkNew<vtkLODActor> camActor;camActor->SetMapper(camMapper);camActor->SetScale(2, 2, 2);// draw the arrowsvtkNew<vtkPolyData> pd;vtkNew<vtkCellArray> ca;vtkNew<vtkPoints> fp;fp->InsertNextPoint(0, 1, 0);fp->InsertNextPoint(8, 1, 0);fp->InsertNextPoint(8, 2, 0);fp->InsertNextPoint(10, 0.01, 0);fp->InsertNextPoint(8, -2, 0);fp->InsertNextPoint(8, -1, 0);fp->InsertNextPoint(0, -1, 0);ca->InsertNextCell(7);ca->InsertCellPoint(0);ca->InsertCellPoint(1);ca->InsertCellPoint(2);ca->InsertCellPoint(3);ca->InsertCellPoint(4);ca->InsertCellPoint(5);ca->InsertCellPoint(6);pd->SetPoints(fp);pd->SetPolys(ca);vtkNew<vtkPolyData> pd2;vtkNew<vtkCellArray> ca2;vtkNew<vtkPoints> fp2;fp2->InsertNextPoint(0, 1, 0);fp2->InsertNextPoint(8, 1, 0);fp2->InsertNextPoint(8, 2, 0);fp2->InsertNextPoint(10, 0.01, 0);ca2->InsertNextCell(4);ca2->InsertCellPoint(0);ca2->InsertCellPoint(1);ca2->InsertCellPoint(2);ca2->InsertCellPoint(3);pd2->SetPoints(fp2);pd2->SetLines(ca2);vtkNew<vtkImplicitModeller> arrowIM;arrowIM->SetInputData(pd);arrowIM->SetSampleDimensions(50, 20, 8);vtkNew<vtkContourFilter> arrowCF;arrowCF->SetInputConnection(arrowIM->GetOutputPort());arrowCF->SetValue(0, 0.2);vtkNew<vtkWarpTo> arrowWT;arrowWT->SetInputConnection(arrowCF->GetOutputPort());arrowWT->SetPosition(5, 0, 5);arrowWT->SetScaleFactor(0.85);arrowWT->AbsoluteOn();vtkNew<vtkTransform> arrowT;arrowT->RotateY(60);arrowT->Translate(-1.33198, 0, -1.479);arrowT->Scale(1, 0.5, 1);vtkNew<vtkTransformFilter> arrowTF;arrowTF->SetInputConnection(arrowWT->GetOutputPort());arrowTF->SetTransform(arrowT);vtkNew<vtkDataSetMapper> arrowMapper;arrowMapper->SetInputConnection(arrowTF->GetOutputPort());arrowMapper->ScalarVisibilityOff();// draw the azimuth arrowsvtkNew<vtkLODActor> a1Actor;a1Actor->SetMapper(arrowMapper);a1Actor->RotateZ(180);a1Actor->SetPosition(1, 0, -1);a1Actor->GetProperty()->SetColor(colors->GetColor3d("AzimuthArrowColor").GetData());a1Actor->GetProperty()->SetSpecularColor(colors->GetColor3d("White").GetData());a1Actor->GetProperty()->SetSpecular(0.3);a1Actor->GetProperty()->SetSpecularPower(20);a1Actor->GetProperty()->SetAmbient(0.2);a1Actor->GetProperty()->SetDiffuse(0.8);vtkNew<vtkLODActor> a2Actor;a2Actor->SetMapper(arrowMapper);a2Actor->RotateZ(180);a2Actor->RotateX(180);a2Actor->SetPosition(1, 0, 1);a2Actor->GetProperty()->SetColor(colors->GetColor3d("AzimuthArrowColor").GetData());a2Actor->GetProperty()->SetSpecularColor(colors->GetColor3d("White").GetData());a2Actor->GetProperty()->SetSpecular(0.3);a2Actor->GetProperty()->SetSpecularPower(20);a2Actor->GetProperty()->SetAmbient(0.2);a2Actor->GetProperty()->SetDiffuse(0.8);// draw the elevation arrowsvtkNew<vtkLODActor> a3Actor;a3Actor->SetMapper(arrowMapper);a3Actor->RotateZ(180);a3Actor->RotateX(90);a3Actor->SetPosition(1, -1, 0);a3Actor->GetProperty()->SetColor(colors->GetColor3d("ElevationArrowColor").GetData());a3Actor->GetProperty()->SetSpecularColor(colors->GetColor3d("White").GetData());a3Actor->GetProperty()->SetSpecular(0.3);a3Actor->GetProperty()->SetSpecularPower(20);a3Actor->GetProperty()->SetAmbient(0.2);a3Actor->GetProperty()->SetDiffuse(0.8);vtkNew<vtkLODActor> a4Actor;a4Actor->SetMapper(arrowMapper);a4Actor->RotateZ(180);a4Actor->RotateX(-90);a4Actor->SetPosition(1, 1, 0);a4Actor->GetProperty()->SetColor(colors->GetColor3d("ElevationArrowColor").GetData());a4Actor->GetProperty()->SetSpecularColor(colors->GetColor3d("White").GetData());a4Actor->GetProperty()->SetSpecular(0.3);a4Actor->GetProperty()->SetSpecularPower(20);a4Actor->GetProperty()->SetAmbient(0.2);a4Actor->GetProperty()->SetDiffuse(0.8);// draw the DOPvtkNew<vtkTransform> arrowT2;arrowT2->Scale(1, 0.6, 1);arrowT2->RotateY(90);vtkNew<vtkTransformPolyDataFilter> arrowTF2;arrowTF2->SetInputData(pd2);arrowTF2->SetTransform(arrowT2);vtkNew<vtkRotationalExtrusionFilter> arrowREF;arrowREF->SetInputConnection(arrowTF2->GetOutputPort());arrowREF->CappingOff();arrowREF->SetResolution(30);vtkNew<vtkPolyDataMapper> spikeMapper;spikeMapper->SetInputConnection(arrowREF->GetOutputPort());vtkNew<vtkLODActor> a5Actor;a5Actor->SetMapper(spikeMapper);a5Actor->SetScale(.3, .3, .6);a5Actor->RotateY(90);a5Actor->SetPosition(-2, 0, 0);a5Actor->GetProperty()->SetColor(colors->GetColor3d("SpikeColor").GetData());a5Actor->GetProperty()->SetAmbient(0.2);a5Actor->GetProperty()->SetDiffuse(0.8);// focal pointvtkNew<vtkSphereSource> fps;fps->SetRadius(0.5);vtkNew<vtkPolyDataMapper> fpMapper;fpMapper->SetInputConnection(fps->GetOutputPort());vtkNew<vtkLODActor> fpActor;fpActor->SetMapper(fpMapper);fpActor->SetPosition(-9, 0, 0);fpActor->GetProperty()->SetSpecularColor(colors->GetColor3d("White").GetData());fpActor->GetProperty()->SetSpecular(0.3);fpActor->GetProperty()->SetAmbient(0.2);fpActor->GetProperty()->SetDiffuse(0.8);fpActor->GetProperty()->SetSpecularPower(20);// create the roll arrowsvtkNew<vtkWarpTo> arrowWT2;arrowWT2->SetInputConnection(arrowCF->GetOutputPort());arrowWT2->SetPosition(5, 0, 2.5);arrowWT2->SetScaleFactor(0.95);arrowWT2->AbsoluteOn();vtkNew<vtkTransform> arrowT3;arrowT3->Translate(-2.50358, 0, -1.70408);arrowT3->Scale(0.5, 0.3, 1);vtkNew<vtkTransformFilter> arrowTF3;arrowTF3->SetInputConnection(arrowWT2->GetOutputPort());arrowTF3->SetTransform(arrowT3);vtkNew<vtkDataSetMapper> arrowMapper2;arrowMapper2->SetInputConnection(arrowTF3->GetOutputPort());arrowMapper2->ScalarVisibilityOff();// draw the roll arrowsvtkNew<vtkLODActor> a6Actor;a6Actor->SetMapper(arrowMapper2);a6Actor->RotateZ(90);a6Actor->SetPosition(-4, 0, 0);a6Actor->SetScale(1.5, 1.5, 1.5);a6Actor->GetProperty()->SetColor(colors->GetColor3d("RollArrowColor").GetData());a6Actor->GetProperty()->SetSpecularColor(colors->GetColor3d("White").GetData());a6Actor->GetProperty()->SetSpecular(0.3);a6Actor->GetProperty()->SetSpecularPower(20);a6Actor->GetProperty()->SetAmbient(0.2);a6Actor->GetProperty()->SetDiffuse(0.8);// Add the actors to the renderer, set the background and sizeren1->AddActor(camActor);ren1->AddActor(a1Actor);ren1->AddActor(a2Actor);ren1->AddActor(a3Actor);ren1->AddActor(a4Actor);ren1->AddActor(a5Actor);ren1->AddActor(a6Actor);ren1->AddActor(fpActor);ren1->SetBackground(colors->GetColor3d("BkgColor").GetData());ren1->SetBackground(colors->GetColor3d("SlateGray").GetData());renWin->SetSize(640, 480);renWin->SetWindowName("CameraModel1");// render the imagevtkCamera* cam1 = (ren1->GetActiveCamera());ren1->ResetCamera();cam1->Azimuth(150);cam1->Elevation(30);cam1->Dolly(1.5);ren1->ResetCameraClippingRange();// Create a TextActor for azimuth  (a1 and a2 actor's color)vtkNew<vtkTextActor> text;text->SetInput("Azimuth");vtkTextProperty* tprop = text->GetTextProperty();tprop->SetFontFamilyToArial();tprop->ShadowOff();tprop->SetLineSpacing(1.0);tprop->SetFontSize(36);tprop->SetColor(a1Actor->GetProperty()->GetColor());text->SetDisplayPosition(20, 50);ren1->AddActor2D(text);// Create a TextActor for elevation  (a3 and a4 actor's color)vtkNew<vtkTextActor> text2;text2->SetInput("Elevation");tprop = text2->GetTextProperty();tprop->SetFontFamilyToArial();tprop->ShadowOff();tprop->SetLineSpacing(1.0);tprop->SetFontSize(36);tprop->SetColor(a3Actor->GetProperty()->GetColor());text2->SetDisplayPosition(20, 100);ren1->AddActor2D(text2);// Create a TextActor for roll (a6 actor's color)vtkNew<vtkTextActor> text3;text3->SetInput("Roll");tprop = text3->GetTextProperty();tprop->SetFontFamilyToArial();tprop->ShadowOff();tprop->SetLineSpacing(1.0);tprop->SetFontSize(36);tprop->SetColor(a6Actor->GetProperty()->GetColor());text3->SetDisplayPosition(20, 150);ren1->AddActor2D(text3);vtkNew<Normal3DCameraStyle> style;cam1->SetFocalPoint(fpActor->GetPosition());cam1->SetPosition(camActor->GetPosition());style->m_Camera = cam1;style->m_RenderWindows = renWin;iren->SetInteractorStyle(style);renWin->Render();iren->Initialize();iren->Start();}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/255642.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

阿里云游戏服务器一年费用多少?

阿里云游戏服务器租用价格表&#xff1a;4核16G服务器26元1个月、146元半年&#xff0c;游戏专业服务器8核32G配置90元一个月、271元3个月&#xff0c;阿里云服务器网aliyunfuwuqi.com分享阿里云游戏专用服务器详细配置和精准报价&#xff1a; 阿里云游戏服务器租用价格表 阿…

深度解析Pandas聚合操作:案例演示、高级应用与实战技巧【第74篇—Pandas聚合】

深度解析Pandas聚合操作&#xff1a;案例演示、高级应用与实战技巧 在数据分析和处理领域&#xff0c;Pandas一直是Python中最受欢迎的库之一。它提供了丰富的数据结构和强大的功能&#xff0c;使得数据清洗、转换和分析变得更加高效。其中&#xff0c;Pandas的聚合操作在数据…

Android Studio 安装Flutter插件但是没法创建项目

Android Studio 安装Flutter插件但是没法创建项目 如果你在Android Studio已经安装了Dart、Flutter插件&#xff0c;但是不能创建Flutter项目。 原因是因为Android Studio的版本更新&#xff0c;Android APK Support这个插件没被选中。 一旦勾选这个插件之后&#xff0c;就能…

基于 Python opencv 的人脸识别的酒店客房入侵系统的检测

博主介绍&#xff1a;✌程序员徐师兄、7年大厂程序员经历。全网粉丝12W、csdn博客专家、掘金/华为云/阿里云/InfoQ等平台优质作者、专注于Java技术领域和毕业项目实战✌ &#x1f345;文末获取源码联系&#x1f345; &#x1f447;&#x1f3fb; 精彩专栏推荐订阅&#x1f447;…

NLP_Bag-Of-Words(词袋模型)

文章目录 词袋模型用词袋模型计算文本相似度1.构建实验语料库2.给句子分词3.创建词汇表4.生成词袋表示5.计算余弦相似度6.可视化余弦相似度 词袋模型小结 词袋模型 词袋模型是一种简单的文本表示方法&#xff0c;也是自然语言处理的一个经典模型。它将文本中的词看作一个个独立…

CRNN介绍:用于识别图中文本的深度学习模型

CRNN&#xff1a;用于识别图中文本的深度学习模型 CRNN介绍&#xff1a;用于识别图中文本的深度学习模型CRNN的结构组成部分工作原理 CRNN结构分析卷积层&#xff08;Convolutional Layers&#xff09;递归层&#xff08;Recurrent Layers&#xff09;转录层&#xff08;Transc…

数据库学习笔记2024/2/5

2. SQL 全称 Structured Query Language&#xff0c;结构化查询语言。操作关系型数据库的编程语言&#xff0c;定义了 一套操作关系型数据库统一标准 2.1 SQL通用语法 在学习具体的SQL语句之前&#xff0c;先来了解一下SQL语言的通用语法。 1). SQL语句可以单行或多行书写&…

【Effective Objective - C 2.0】——读书笔记(三)

文章目录 十五、用前缀避免命名空间冲突十六、提供全能初始化方法十七、实现description方法十八、尽量使用不可变对象十九、使用清晰而协调的命名方式二十、为私有方法名加前缀二十一、理解Objective-C错误模型二十二、理解NSCopying协议 十五、用前缀避免命名空间冲突 OC语言…

Maven - 编译报错:程序包 XXX 不存在(多模块项目)

问题描述 编译报错&#xff1a;程序包 XXX 不存在&#xff08;多模块项目&#xff09; 原因分析 检查依赖模块 pom 文件&#xff0c;看是不是引入了如下插件 <plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-pl…

go语言进阶篇——面向对象(一)

什么是面向对象 在我们设计代码时&#xff0c;比如写一个算法题或者写一个问题结局办法时&#xff0c;我们常常会使用面向过程的方式来书写代码&#xff0c;面向过程主要指的是以解决问题为中心&#xff0c;按照一步步具体的步骤来编写代码或者调用函数&#xff0c;他在问题规…

C#上位机与三菱PLC的通信05--MC协议之QnA-3E报文解析

1、MC协议回顾 MC是公开协议 &#xff0c;所有报文格式都是有标准 &#xff0c;MC协议可以在串口通信&#xff0c;也可以在以太网通信 串口&#xff1a;1C、2C、3C、4C 网口&#xff1a;4E、3E、1E A-1E是三菱PLC通信协议中最早的一种&#xff0c;它是一种基于二进制通信协…

Java 学习和实践笔记(6)

各数据类型所占的空间&#xff1a; byte: 1个字节 short&#xff1a;2个字节 int&#xff1a;4个 long&#xff1a;8个 float&#xff1a;4个 double: 8个 char:1个 boolean:1bit 所有引用数据类型都是4个字节&#xff0c;实际其值是指向该数据类型的地址。 上图中稍特…

百卓Smart管理平台 uploadfile.php 文件上传漏洞(CVE-2024-0939)

免责声明&#xff1a;文章来源互联网收集整理&#xff0c;请勿利用文章内的相关技术从事非法测试&#xff0c;由于传播、利用此文所提供的信息或者工具而造成的任何直接或者间接的后果及损失&#xff0c;均由使用者本人负责&#xff0c;所产生的一切不良后果与文章作者无关。该…

【前端web入门第五天】01 结构伪类选择器与伪元素选择器

文章目录: 1.结构伪类选择器 1.1 nth-child(公式) 2.伪元素选择器 1.结构伪类选择器 作用:根据元素的结构关系查找元素。 选择器说明E:first-child查找第一个E元素E:last-child查找最后一个E元素E:nth-child(N)查找第N个E元素&#xff08;第一个元素N值为1) 一个列表结构…

Spring基础 - SpringMVC请求流程和案例

Spring基础 - SpringMVC请求流程和案例 什么是MVC 用一种业务逻辑、数据、界面显示分离的方法&#xff0c;将业务逻辑聚集到一个部件里面&#xff0c;在改进和个性化定制界面及用户交互的同时&#xff0c;不需要重新编写业务逻辑。MVC被独特的发展起来用于映射传统的输入、处理…

服务器解析漏洞及任意文件下载

1.服务器文件解析漏洞 文件解析漏洞,是指Web容器&#xff08;Apache、nginx、iis等&#xff09;在解析文件时出现了漏洞,以其他格式执行出脚本格式的效果。从而,黑客可以利用该漏洞实现非法文件的解析。 &#xff08;1) Apache linux系统中的apache的php配置文件在/etc/apac…

【深蓝学院】移动机器人运动规划--第4章 动力学约束下的运动规划--笔记

0. Outline 1. Introduction 什么是kinodynamic&#xff1f; 运动学&#xff08;Kinematics&#xff09;和动力学&#xff08;Dynamics&#xff09;都是力学的分支&#xff0c;涉及物体的运动&#xff0c;但它们研究的焦点不同。 运动学专注于描述物体的运动&#xff0c;而…

假期day5

TCP UDP区别 共同点&#xff1a;都是属于传输层的协议 TCP&#xff1a;稳定。面向连接的&#xff0c;有可靠的数据传输服务。传输过程中数据无误&#xff0c;无丢失&#xff0c;无失序&#xff0c;无重复。传输效率低&#xff0c;耗费资源多。数据收发不同步&#xff0c;有沾…

每日五道java面试题之java基础篇(六)

第一题&#xff1a;Java 创建对象有哪⼏种⽅式&#xff1f; Java 中有以下四种创建对象的⽅式: new 创建新对象通过反射机制采⽤ clone 机制通过序列化机制 前两者都需要显式地调⽤构造⽅法。对于 clone 机制,需要注意浅拷⻉和深拷⻉的区别&#xff0c;对于序列化机制需要明…

AJAX——认识URL

1 什么是URL&#xff1f; 统一资源定位符&#xff08;英语&#xff1a;Uniform Resource Locator&#xff0c;缩写&#xff1a;URL&#xff0c;或称统一资源定位器、定位地址、URL地址&#xff09;俗称网页地址&#xff0c;简称网址&#xff0c;是因特网上标准的资源的地址&…