当前位置:网站首页>Carsim-問題Failed to start Solver: PATH_ID_OBJ(X) was set to Y; no corresponding value of XXXXX?
Carsim-問題Failed to start Solver: PATH_ID_OBJ(X) was set to Y; no corresponding value of XXXXX?
2022-07-02 08:07:00 【江藤霞】
文章目錄
應該是路徑數量不匹配的問題
一、操作步驟
在這個例子裏面,我直接拿案列修改的
地圖是自己用VS Scene Builder新建的只有一條路徑
而案例裏面初始的地圖路徑有3條!(紅色是車輛的,綠色和藍色是兩輛自行車的)
二、原因
由以上步驟可看出路徑的數量明顯不一樣!而Home(主界面)下又給行人、自行車駕駛員設置了路徑。
但是我導入的文件只有一條路徑,也就是之前行人、自行車駕駛員綁定的路徑在其它兩天路徑上,但是現在給删掉了,所以會報以下錯誤。
Error reported by S-function 'vs_sf' in 'Demo_Simulink_1/CarSim S-Function':
Failed to start Solver: PATH_ID_OBJ(1) was set to 3; no corresponding value of PATH_ID could be found.
三、怎麼解决?
1、把添加的行人、自行車等與路徑相關的一些附加對象給删除掉。
1> 回到主頁面,把紅框圈選的給去掉。

2、把行人、自行車等對象的路徑ID修改為路徑文件裏面含有的路徑ID。
雖然我們導入的.vsscene文件只有一條道路,但是在上面的Pedestrians at Cross Walk, City一欄還定義了一個路段,所以一共有兩條路徑。為了更明顯的驗證結果,我們把行人,自行車的路徑ID都設置為1(與車輛路徑一致)。
第一個圖在Home界面的左邊。


3、回到Home,進行simulink仿真,結果如下:

可以看到車輛,行人,自行車都以自己導入的路徑文件的路徑為基礎進行移動!
問題解决啦!
四、總結
遇到類似的問題,首先考慮是附加的Object的路徑ID出現了問題。
覺得有用的小夥伴點個贊再走唄!
边栏推荐
- One book 1078: sum of fractional sequences
- 【Wing Loss】《Wing Loss for Robust Facial Landmark Localisation with Convolutional Neural Networks》
- 樂理基礎(簡述)
- 乐理基础(简述)
- Income in the first month of naked resignation
- open3d学习笔记三【采样与体素化】
- [C # note] the data in DataGridView saved in WinForm is excel and CSV
- Carsim-问题Failed to start Solver: PATH_ID_OBJ(X) was set to Y; no corresponding value of XXXXX?
- 关于原型图的深入理解
- Sequence problem for tqdm and print
猜你喜欢

【Batch】learning notes

In the era of short video, how to ensure that works are more popular?

使用C#语言来进行json串的接收

MySQL优化

Feature Engineering: summary of common feature transformation methods

【Cutout】《Improved Regularization of Convolutional Neural Networks with Cutout》

【雙目視覺】雙目矯正

OpenCV 6.4 中值滤波器的使用

【学习笔记】Matlab自编图像卷积函数

Specification for package drawing
随机推荐
Jetson nano installation tensorflow stepping pit record (scipy1.4.1)
OpenCV3 6.3 用滤波器进行缩减像素采样
多站点高可用部署
深入理解JVM
Comparison between setTimeout and requestanimationframe (page refresh)
服务器的内网可以访问,外网却不能访问的问题
The internal network of the server can be accessed, but the external network cannot be accessed
Global and Chinese market of medicine cabinet 2022-2028: Research Report on technology, participants, trends, market size and share
【学习笔记】反向误差传播之数值微分
I'll show you why you don't need to log in every time you use Taobao, jd.com, etc?
Organigramme des activités
学习写文章格式
jetson nano安装tensorflow踩坑记录(scipy1.4.1)
用C# 语言实现MYSQL 真分页
業務架構圖
[learning notes] matlab self compiled Gaussian smoother +sobel operator derivation
C language implements XML generation and parsing library (XML extension)
Feature Engineering: summary of common feature transformation methods
Array and string processing, common status codes, differences between PHP and JS (JS)
使用C#语言来进行json串的接收