当前位置:网站首页>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出現了問題。
覺得有用的小夥伴點個贊再走唄!
边栏推荐
- Data reverse attack under federated learning -- gradinversion
- Replace self attention with MLP
- Real world anti sample attack against semantic segmentation
- 最长等比子序列
- [learning notes] matlab self compiled Gaussian smoother +sobel operator derivation
- open3d学习笔记五【RGBD融合】
- Open3d learning notes 1 [first glimpse, file reading]
- OpenCV常用方法出处链接(持续更新)
- 使用C#语言来进行json串的接收
- 图像增强的几个方法以及Matlab代码
猜你喜欢

Programmers can only be 35? The 74 year old programmer in the United States has been programming for 57 years and has not retired

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

VS Code配置问题

图像增强的几个方法以及Matlab代码

针对语义分割的真实世界的对抗样本攻击

It's great to save 10000 pictures of girls

Where do you find the materials for those articles that have read 10000?

Network metering - transport layer
![Open3d learning notes 1 [first glimpse, file reading]](/img/68/68ea87817dbf788591216a32c9375b.png)
Open3d learning notes 1 [first glimpse, file reading]
![[learning notes] matlab self compiled image convolution function](/img/82/43fc8b2546867d89fe2d67881285e9.png)
[learning notes] matlab self compiled image convolution function
随机推荐
力扣每日一题刷题总结:链表篇(持续更新)
【学习笔记】Matlab自编图像卷积函数
Cvpr19 deep stacked hierarchical multi patch network for image deblurring paper reproduction
11月24号,我们为“满月”庆祝
Real world anti sample attack against semantic segmentation
Global and Chinese markets for Salmonella typhi nucleic acid detection kits 2022-2028: Research Report on technology, participants, trends, market size and share
AR系统总结收获
Dynamic extensible representation for category incremental learning -- der
install.img制作方式
Carsim-实时仿真的动画同步问题
利用超球嵌入来增强对抗训练
Embedding malware into neural networks
Gensim如何冻结某些词向量进行增量训练
【C#笔记】winform中保存DataGridView中的数据为Excel和CSV
[binocular vision] binocular stereo matching
【学习笔记】Matlab自编高斯平滑器+Sobel算子求导
Carsim-路面3D形状文件参数介绍
Several methods of image enhancement and matlab code
[learning notes] matlab self compiled Gaussian smoother +sobel operator derivation
【Cutout】《Improved Regularization of Convolutional Neural Networks with Cutout》