当前位置:网站首页>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 06:28: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出现了问题。
觉得有用的小伙伴点个赞再走呗!
边栏推荐
- 用MLP代替掉Self-Attention
- 業務架構圖
- Sequence problem for tqdm and print
- What if the notebook computer cannot run the CMD command
- 最长等比子序列
- Meta Learning 简述
- Graph Pooling 简析
- Business architecture diagram
- Array and string processing, common status codes, differences between PHP and JS (JS)
- jetson nano安装tensorflow踩坑记录(scipy1.4.1)
猜你喜欢
![[Sparse to Dense] Sparse to Dense: Depth Prediction from Sparse Depth samples and a Single Image](/img/05/bf131a9e2716c9147a5473db4d0a5b.png)
[Sparse to Dense] Sparse to Dense: Depth Prediction from Sparse Depth samples and a Single Image

【Wing Loss】《Wing Loss for Robust Facial Landmark Localisation with Convolutional Neural Networks》

VS Code配置问题

用MLP代替掉Self-Attention

Command line is too long

【Batch】learning notes

使用Matplotlib绘制图表初步

OpenCV3 6.3 用滤波器进行缩减像素采样

利用超球嵌入来增强对抗训练

jetson nano安装tensorflow踩坑记录(scipy1.4.1)
随机推荐
Cvpr19 deep stacked hierarchical multi patch network for image deblurring paper reproduction
我的vim配置文件
[learning notes] matlab self compiled Gaussian smoother +sobel operator derivation
Global and Chinese market of tillage finishing machines 2022-2028: Research Report on technology, participants, trends, market size and share
【MnasNet】《MnasNet:Platform-Aware Neural Architecture Search for Mobile》
【Cutout】《Improved Regularization of Convolutional Neural Networks with Cutout》
OpenCV3 6.3 用滤波器进行缩减像素采样
Sequence problem for tqdm and print
业务架构图
力扣每日一题刷题总结:字符串篇(持续更新)
Brief introduction of prompt paradigm
A brief analysis of graph pooling
静态库和动态库
Simply test the two different data transmission methods of content length and chunked
Using super ball embedding to enhance confrontation training
On the confrontation samples and their generation methods in deep learning
In the era of short video, how to ensure that works are more popular?
使用Matplotlib绘制图表初步
使用C#语言来进行json串的接收
STL速查手册