当前位置:网站首页>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出现了问题。
觉得有用的小伙伴点个赞再走呗!
边栏推荐
- Hystrix dashboard cannot find hystrix Stream solution
- Nacos service registration in the interface
- 图像增强的几个方法以及Matlab代码
- 【Sparse-to-Dense】《Sparse-to-Dense:Depth Prediction from Sparse Depth Samples and a Single Image》
- How gensim freezes some word vectors for incremental training
- Graph Pooling 简析
- 樂理基礎(簡述)
- 力扣每日一题刷题总结:二叉树篇(持续更新)
- Replace self attention with MLP
- 【FastDepth】《FastDepth:Fast Monocular Depth Estimation on Embedded Systems》
猜你喜欢
11月24号,我们为“满月”庆祝
How to wrap qstring strings
Feature Engineering: summary of common feature transformation methods
针对语义分割的真实世界的对抗样本攻击
OpenCV3 6.3 用滤波器进行缩减像素采样
【BiSeNet】《BiSeNet:Bilateral Segmentation Network for Real-time Semantic Segmentation》
On the back door of deep learning model
Sequence problem for tqdm and print
【MagNet】《Progressive Semantic Segmentation》
【TCDCN】《Facial landmark detection by deep multi-task learning》
随机推荐
Sequence problem for tqdm and print
【MagNet】《Progressive Semantic Segmentation》
Where do you find the materials for those articles that have read 10000?
针对tqdm和print的顺序问题
Specification for package drawing
用于类别增量学习的动态可扩展表征 -- DER
【双目视觉】双目矫正
[binocular vision] binocular stereo matching
STM32疑难杂症之ST-LINK Connection error INVALID ROM TABLE
力扣方法总结:双指针
简易打包工具的安装与使用
Media query usage
浅谈深度学习中的对抗样本及其生成方法
用MLP代替掉Self-Attention
OpenCV 6.4 中值滤波器的使用
Graph Pooling 简析
【MnasNet】《MnasNet:Platform-Aware Neural Architecture Search for Mobile》
EKLAVYA -- 利用神经网络推断二进制文件中函数的参数
力扣方法总结:滑动窗口
乐理基础(简述)