当前位置:网站首页>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出現了問題。
覺得有用的小夥伴點個贊再走唄!
边栏推荐
猜你喜欢

浅谈深度学习中的对抗样本及其生成方法

A brief analysis of graph pooling

Principes fondamentaux de la théorie musicale (brève introduction)

11月24号,我们为“满月”庆祝

Sequence problem for tqdm and print

【双目视觉】双目矫正

Using transformer for object detection and semantic segmentation

用全连接层替代掉卷积 -- RepMLP

用MLP代替掉Self-Attention

Fundamentals of music theory (brief introduction)
随机推荐
【双目视觉】双目矫正
Eklavya -- infer the parameters of functions in binary files using neural network
【Random Erasing】《Random Erasing Data Augmentation》
用全连接层替代掉卷积 -- RepMLP
Open3D学习笔记一【初窥门径,文件读取】
Sequence problem for tqdm and print
静态库和动态库
王-课外单词
Find and rfind methods in string
Meta Learning 简述
open3d学习笔记三【采样与体素化】
【Hide-and-Seek】《Hide-and-Seek: A Data Augmentation Technique for Weakly-Supervised Localization xxx》
On the back door of deep learning model
Global and Chinese market of tillage finishing machines 2022-2028: Research Report on technology, participants, trends, market size and share
C语言实现XML生成解析库(XML扩展)
Get the width and height of the screen in real time (adaptive)
業務架構圖
Open3d learning note 4 [surface reconstruction]
Global and Chinese markets for magnetic resonance imaging (MRI) transmission 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese market of recovery equipment 2022-2028: Research Report on technology, participants, trends, market size and share