当前位置:网站首页>DSPACE仿真平台的使用
DSPACE仿真平台的使用
2022-04-22 20:55:00 【风云诀4】
DSPACE仿真平台的使用
我们使用DSPACE仿真平台软件来模拟小汽车的自动驾驶。
总共需要用到DSPACE大类下的三个软件:ModelDesk、ControlDesk、MotionDesk。

1.ModelDesk新建项目
在桌面上点击ModelDesk图标,打开DSPACE—ModelDesk

选择 File 标签,侧边栏选择 New,点击 New ASM Project。

项目类型(ASM Project Type)选择 Traffic。目标路径(Target directory)自定义为自己想要的路径,并且记住这个路径,下一步有用。目标平台(Target Platform)选择VEOS。

耐心等待半分钟,项目建立成功之后如下。

2.MotionDesk引入项目
点击MotionDesk图标,打开DSPACE—MotionDesk。

选择 File 标签,侧边栏选择 Open,点击Open Project and Experiment

选择上一步创建的项目的路径,例如我的是E:\dspace\Traffic_test。在下方栏目中点击加号进行展开,选择ASMTraffic。

耐心等待半分钟,项目引入成功之后可以看到一个小汽车在路面上。

3.ControlDesk引入项目
ControlDesk的引入和MotionDesk完全一样,但是它引入之后比MotionDesk要多两步配置。
同样地,我们打开DSPACE—ControlDesk。

选择 File 标签,侧边栏选择 Open,点击Open Project and Experiment

还是选择那个项目路径,下方栏目选择Experiment_001。

项目引入成功之后如下。

从这里开始要比MotionDesk多两步配置。
第一步,我们在左侧的Project选项卡中选中Hardware Configuration。点击鼠标右键,选择Add Platform/Device 。

Platform Type 选择 VEOS,点击next。

点击Import from file,在弹出窗口中直接选择 ASM_Traffic.sdf。

点击Finish,可以看到Hardware Configuration中出现了我们刚才导入的文件

第二步,依然在左侧的Project选项卡中,双击打开 dashboard.lay 文件,右侧会出现一个汽车仪表盘。

4.项目整合运行
我们在ControlDesk的菜单栏中,点击 Go online。

在MotionDesk中,Home菜单栏中的Sources默认是Network:UDP:Connection,我们将它选择为VEOS:UDP:Connection。然后点击 Go online。

我们回到ModelDesk中,在左侧的Project选项卡中,双击打开Experiment_001,在中间会看到一个配置页面 Configuration Page,然后点击右边的 Download All 按钮。
这一步的作用是将ModelDesk中设置的参数全部传递到MotionDesk和ControlDesk中,三者才能协同运行。

最后,我们在ModelDesk的Home菜单栏下,点击Start,一个简单的 DSPACE 项目就开始运行啦。
我们可以在MotionDesk中看到仪表盘上的速度开始提升,ControlDesk中的小汽车开始移动。


如果要结束项目运行,在ModelDesk中点击 Stop ,在MotionDesk、ControlDesk中点击 Go offline 即可。

版权声明
本文为[风云诀4]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_42582489/article/details/124299237
边栏推荐
- 产品和服务谁重要,长安福特告诉你“全都要”
- 88 r user portrait linear regression logical regression comprehensive practice 1
- Use of list
- Leetcode Hot 100
- [200 opencv routines of youcans] 160 Otsu method of image processing
- 二、线性回归
- Domain name resolution process
- 农村没网络怎样安监控,家里没有wifi安哪种监控器
- Reprint: the development direction of programmers
- Minio基本使用与原理
猜你喜欢

Building a new generation of computing platform, stepvr will open the "door" of metauniverse in 2022

Dialogue: Shen Si L, founder of papaya mobile, from Silicon Valley to Beijing

Introduction to dynamic programming of leetcode learning plan day1,2 (4 questions in total)

A thorough explanation of the future form, development status and Prospect of Business Intelligence BI | recommended collection
![[dasctf OCT x] lost magic girl](/img/1a/b42e8b1189613c131181ce41953508.png)
[dasctf OCT x] lost magic girl
十月的Android面试之旅,惨败在字节三面,幸斩获小米Offer
![[state machine] 388 The longest absolute path of the file](/img/58/9ffc078c4c2877307f6c2b09c1fd31.jpg)
[state machine] 388 The longest absolute path of the file

Ziguang Guowei: it is actively expanding the category of analog chips, and some products have been sold in batches

MySQL advanced trigger -- trigger introduction, trigger syntax and trigger case

二、线性回归
随机推荐
产品和服务谁重要,长安福特告诉你“全都要”
Dynamic database tool -- database inspector
Lenovo computer housekeeper graphic introduction: how to download Lenovo computer housekeeper?
After working for three years as a programmer in a small 9K factory with a monthly salary, he finally won the byte offer he had been longing for for for for a long time in his spare time. The salary c
[radar] point target simulation of simulated synthetic aperture radar (SAR)
Redis's key and value best practices
String - 7 Output string (10 points) both printf function and puts function in C language standard function library can output string, but each has its own advantages and disadvantages. We combine the
A thorough explanation of the future form, development status and Prospect of Business Intelligence BI | recommended collection
H. Maximal AND
Industrial control safety solution
Use constant member functions for constant types (design a date class and time)
Detailed explanation of sorting methods (8 kinds) - bucket sorting
Leetcode学习计划之动态规划入门day1,2(共4题)
Windows安装Redis
互联网时代没有囊括进来的流量,在产业互联网时代全部都被囊括进来
Huawei machine test questions summary
农村没网络怎样安监控,家里没有wifi安哪种监控器
I neglected to prepare for this interview, which made me beat the day before yesterday
紫光国微:正积极拓展模拟芯片品类,部分产品已实现批量销售
Huawei machine test question -- hj72 100 money to buy 100 chickens