当前位置:网站首页>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出現了問題。
覺得有用的小夥伴點個贊再走唄!
边栏推荐
- Using super ball embedding to enhance confrontation training
- On the confrontation samples and their generation methods in deep learning
- 稀疏矩阵存储
- Programmers can only be 35? The 74 year old programmer in the United States has been programming for 57 years and has not retired
- In the era of short video, how to ensure that works are more popular?
- Global and Chinese market of recovery equipment 2022-2028: Research Report on technology, participants, trends, market size and share
- Replace self attention with MLP
- Jetson nano installation tensorflow stepping pit record (scipy1.4.1)
- 业务架构图
- 【双目视觉】双目立体匹配
猜你喜欢

Real world anti sample attack against semantic segmentation

SQLyog远程连接centos7系统下的MySQL数据库

【学习笔记】Matlab自编高斯平滑器+Sobel算子求导

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

【Batch】learning notes

On the confrontation samples and their generation methods in deep learning

What if the laptop can't search the wireless network signal

I'll show you why you don't need to log in every time you use Taobao, jd.com, etc?

【MobileNet V3】《Searching for MobileNetV3》

Programmers can only be 35? The 74 year old programmer in the United States has been programming for 57 years and has not retired
随机推荐
On the back door of deep learning model
业务架构图
高中数学必修一
Hystrix dashboard cannot find hystrix Stream solution
图像增强的几个方法以及Matlab代码
OpenCV3 6.2 低通滤波器的使用
应对长尾分布的目标检测 -- Balanced Group Softmax
Open3d learning notes 1 [first glimpse, file reading]
Income in the first month of naked resignation
Get the width and height of the screen in real time (adaptive)
【MobileNet V3】《Searching for MobileNetV3》
【Hide-and-Seek】《Hide-and-Seek: A Data Augmentation Technique for Weakly-Supervised Localization xxx》
Remplacer l'auto - attention par MLP
It's great to save 10000 pictures of girls
Comparison between setTimeout and requestanimationframe (page refresh)
Wang extracurricular words
Dynamic extensible representation for category incremental learning -- der
E-R draw clear content
联邦学习下的数据逆向攻击 -- GradInversion
One book 1078: sum of fractional sequences