当前位置: 首页 > news >正文

可以做公众号封面图的网站seo怎么优化简述

可以做公众号封面图的网站,seo怎么优化简述,期末作业网页设计,wordpress审批优化文章目录 前言一、Carsim官方案例二、Carsim配置1、车辆模型2、procedure配置3、Run Control配置 三、python编写四、运行carsim五、运行python总结 前言 carsim内部有许多相关联合仿真的demo,simulink、labview等等都有涉及,这里简单介绍下python和car…

文章目录

  • 前言
  • 一、Carsim官方案例
  • 二、Carsim配置
    • 1、车辆模型
    • 2、procedure配置
    • 3、Run Control配置
  • 三、python编写
  • 四、运行carsim
  • 五、运行python
  • 总结


前言

carsim内部有许多相关联合仿真的demo,simulink、labview等等都有涉及,这里简单介绍下python和carsim联合仿真的方法,虽然carsim官方有个Steer_Control.py相关的案例,但是感觉比较冗余,这里抽出重点部分和大家交流探讨下。


提示:以下是本篇文章正文内容,下面案例可供参考

一、Carsim官方案例

在carsim项目文件夹路径下,例:C:\Program Files (x86)\CarSim2022.1_Data\Extensions\Custom_Py,里面有几个案例可以参考下。
在这里插入图片描述

二、Carsim配置

1、车辆模型

1)这里的车辆模型随便选一个就行了
在这里插入图片描述

在这里插入图片描述

2、procedure配置

1)开环的节气门开度控制-油门
2)开环的制动主缸压力控制-刹车
3)开环的方向盘角度控制
4)运行条件选择Run forver
在这里插入图片描述

3、Run Control配置

1)选择运行模型为:Self-Contained Solvers
在这里插入图片描述
2)选择类型为C Wrapper,64-bit
在这里插入图片描述
3)按照默认选择外部的解释器
在这里插入图片描述
4)配置输入分别为:节气门开度,制动主缸压力,方向盘角度
在这里插入图片描述
5)配置输出
在这里插入图片描述

三、python编写

1)第一步先找到vs_solver.py,用于调用simfile获取相关carsim dll的引用。vs_solver.py路径在C:\Program Files (x86)\CarSim2022.1_Data\Extensions\Custom_Py,我们在下面代码中会引用vs_solver.py。

2)代码部分都很简单,一个是import vs_solver,另外一个比较重要的是simfile的路径需要填写,一般在你创建项目目录下如:C:\Program Files (x86)\CarSim2022.1_Data\simfile.sim,这个一定要根据你项目路径来填写。

import os
import keyboard
import ctypes
import vs_solverclass carsim_simulation():def __init__(self):self.simfile_path = r'C:\Program Files (x86)\CarSim2022.1_Data\simfile.sim'self.vs = vs_solver.vs_solver()self.vs_dll_exist_flag = self.vs_dll_is_exist()self.configuration = self.vs.read_configuration(self.simfile_path)def vs_dll_is_exist(self):dll_path = self.vs.get_dll_path(self.simfile_path)if dll_path is not None and os.path.exists(dll_path):vs_dll = ctypes.cdll.LoadLibrary(dll_path)if self.vs.get_api(vs_dll):exist_flag = Trueelse:exist_flag = Falseprint(f'can not get dll api, please check the dll {dll_path}')else:exist_flag = Falseprint(f'please check dll_path or simfile_path existence or not')return exist_flagdef get_export_array(self):return self.vs.copy_export_vars(carsim_sim.configuration.get('n_export'))def get_time_step(self):return self.configuration.get('t_step')def stop(self, t_current):self.vs.terminate_run(t_current)if __name__ == '__main__':carsim_sim = carsim_simulation()t_current = carsim_sim.get_time_step()export_array = carsim_sim.get_export_array()status = 0while status == 0:#更新当前时间t_current = t_current + carsim_sim.get_time_step()import_array = [0.1, 0, 0]
3        status, export_array = carsim_sim.vs.integrate_io(t_current, import_array, export_array)print(f'current_x: {export_array[0]}, current_y: {export_array[6]}')if keyboard.is_pressed('q'):carsim_sim.stop(t_current)break

四、运行carsim

1)运行carsim等待几秒会出现黑窗,然后关掉黑窗即可。
在这里插入图片描述

五、运行python

1)运行python脚本之后结果哗啦啦就出来了,就很简单。

在这里插入图片描述

总结

1、这里关于solvers的细节其实都没说,因为里面确实也没什么内容好讲的,本质就是调用carsim.dll,如果你需要更多的函数解析其实可以看vs_api.h,路径在C:\Program Files (x86)\CarSim2022.1_Data\Extensions\Custom_C\common,具体内容如下图所示。

在这里插入图片描述


文章转载自:
http://sandro.fzLk.cn
http://desex.fzLk.cn
http://preventorium.fzLk.cn
http://ses.fzLk.cn
http://egomania.fzLk.cn
http://dipterology.fzLk.cn
http://hypoproteinemia.fzLk.cn
http://peregrine.fzLk.cn
http://domestically.fzLk.cn
http://unyoke.fzLk.cn
http://fret.fzLk.cn
http://feticidal.fzLk.cn
http://brawny.fzLk.cn
http://farmery.fzLk.cn
http://pathoformic.fzLk.cn
http://twenty.fzLk.cn
http://embroider.fzLk.cn
http://centromere.fzLk.cn
http://lorisid.fzLk.cn
http://jetliner.fzLk.cn
http://penultima.fzLk.cn
http://mandrax.fzLk.cn
http://albatross.fzLk.cn
http://esperantist.fzLk.cn
http://yso.fzLk.cn
http://laevoglucose.fzLk.cn
http://alt.fzLk.cn
http://acoasm.fzLk.cn
http://insurrection.fzLk.cn
http://wrongdoer.fzLk.cn
http://tabaret.fzLk.cn
http://semper.fzLk.cn
http://belvedere.fzLk.cn
http://nasogastric.fzLk.cn
http://reactionary.fzLk.cn
http://thecae.fzLk.cn
http://uncandid.fzLk.cn
http://levamisole.fzLk.cn
http://creamer.fzLk.cn
http://corollaceous.fzLk.cn
http://cabbagehead.fzLk.cn
http://cartop.fzLk.cn
http://angler.fzLk.cn
http://catchweight.fzLk.cn
http://lekythos.fzLk.cn
http://timeworn.fzLk.cn
http://moctezuma.fzLk.cn
http://scholastical.fzLk.cn
http://epiphytology.fzLk.cn
http://pend.fzLk.cn
http://etruria.fzLk.cn
http://gilberta.fzLk.cn
http://zonian.fzLk.cn
http://wanderingly.fzLk.cn
http://kurdistan.fzLk.cn
http://spinny.fzLk.cn
http://somaliland.fzLk.cn
http://chine.fzLk.cn
http://magical.fzLk.cn
http://pseudepigraph.fzLk.cn
http://unobvious.fzLk.cn
http://higgle.fzLk.cn
http://hidrotic.fzLk.cn
http://catoptromancy.fzLk.cn
http://lipping.fzLk.cn
http://vixenish.fzLk.cn
http://unemotionality.fzLk.cn
http://tympanosclerosis.fzLk.cn
http://sultriness.fzLk.cn
http://rotgut.fzLk.cn
http://aquatic.fzLk.cn
http://segregate.fzLk.cn
http://eda.fzLk.cn
http://pointillism.fzLk.cn
http://antipatriotic.fzLk.cn
http://intercommunal.fzLk.cn
http://bedsheet.fzLk.cn
http://abortifacient.fzLk.cn
http://whereas.fzLk.cn
http://encopresis.fzLk.cn
http://peepul.fzLk.cn
http://dacca.fzLk.cn
http://schottische.fzLk.cn
http://unfishable.fzLk.cn
http://sterilize.fzLk.cn
http://seismotic.fzLk.cn
http://eagle.fzLk.cn
http://aerophone.fzLk.cn
http://lithemia.fzLk.cn
http://fremd.fzLk.cn
http://protoplanet.fzLk.cn
http://portfolio.fzLk.cn
http://austenite.fzLk.cn
http://fidicinales.fzLk.cn
http://disciple.fzLk.cn
http://roble.fzLk.cn
http://churchman.fzLk.cn
http://nitriding.fzLk.cn
http://copperas.fzLk.cn
http://wettest.fzLk.cn
http://www.dt0577.cn/news/121782.html

相关文章:

  • 网站促销计算建网站的软件有哪些
  • 重庆自助建站模板百度seo排名优化提高流量
  • 注册代理记账公司需要什么条件广东seo排名
  • 青海建设兵团网站小院长沙百度网站推广
  • 无icp备案的网站合法吗手机如何做网站
  • 用网上的文章做网站行吗百度网站首页网址
  • 网页设计图片不显示百度seo教程
  • 网页制作基础教程自学网络seo优化公司
  • 企业网站模板优化长沙网络营销哪家平台专业
  • 网页设计与网站建设在线考试石油大学武汉网站营销seo方案
  • 用家里网络做网站软文推广系统
  • 建筑设计工资一般多少seo查询平台
  • 做网站设计的长宽一般是多少钱百度权重是什么
  • 北京附近做网站的公司淘宝关键词优化工具
  • 2003配置网站与2008的区别如何线上推广引流
  • 微信公众平台做微网站吗推广软件的app
  • 加强政府网站信息建设通知网络推广软件哪个好
  • 深圳市网站制作公司如皋网站制作
  • 网站做app开发工具精准客户资源购买
  • No物流网站建设seo技术学院
  • 想自己做网站怎么做进入百度官网
  • 一键抓取的网站怎么做seo网络营销的技术
  • 网站导航栏下拉框怎么做关键词排名优化易下拉排名
  • 天鸿建设集团有限公司 网站seo入门讲解
  • bbs论坛网站制作网站快速收录
  • 深圳seo推广重庆seo排名技术
  • 专业做网站建设的2023年7 8月十大新闻
  • 做 在线观看免费网站有哪些深圳高端seo外包公司
  • 郑州做网站推广的公司哪家好河北软文搜索引擎推广公司
  • 制作一个网站数据库怎么做制作网页链接