当前位置:网站首页>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出现了问题。
觉得有用的小伙伴点个赞再走呗!
边栏推荐
- C语言的库函数
- Open3d learning notes II [file reading and writing]
- 用MLP代替掉Self-Attention
- Target detection for long tail distribution -- balanced group softmax
- Comparison between setTimeout and requestanimationframe (page refresh)
- Array and string processing, common status codes, differences between PHP and JS (JS)
- Daily practice (19): print binary tree from top to bottom
- Erase method in string
- Gensim如何冻结某些词向量进行增量训练
- open3d学习笔记五【RGBD融合】
猜你喜欢
![[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

Real world anti sample attack against semantic segmentation

【雙目視覺】雙目矯正

Jetson nano installation tensorflow stepping pit record (scipy1.4.1)

Sequence problem for tqdm and print

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

The internal network of the server can be accessed, but the external network cannot be accessed

【TCDCN】《Facial landmark detection by deep multi-task learning》

【MnasNet】《MnasNet:Platform-Aware Neural Architecture Search for Mobile》

将恶意软件嵌入到神经网络中
随机推荐
open3d环境错误汇总
高中数学必修一
In the era of short video, how to ensure that works are more popular?
CVPR19-Deep Stacked Hierarchical Multi-patch Network for Image Deblurring论文复现
笔记本电脑卡顿问题原因
【FastDepth】《FastDepth:Fast Monocular Depth Estimation on Embedded Systems》
应对长尾分布的目标检测 -- Balanced Group Softmax
【MagNet】《Progressive Semantic Segmentation》
【Batch】learning notes
力扣每日一题刷题总结:栈与队列篇(持续更新)
[binocular vision] binocular stereo matching
乐理基础(简述)
Embedding malware into neural networks
【Batch】learning notes
利用超球嵌入来增强对抗训练
王-课外单词
【C#笔记】winform中保存DataGridView中的数据为Excel和CSV
力扣方法总结:查找类
Replace self attention with MLP
STM32疑难杂症之ST-LINK Connection error INVALID ROM TABLE