解决ROS报错(min.x <= max.x && min.y <= max.y && min.z <= max.z)

本文探讨了在使用ROS-rviz时遇到的OgreAxisAlignedBox.h中的异常问题,详细分析了可能的成因,如数据访问越界、不合法数据等,并提供了排查与解决思路。

ROS - rviz
完整报错:
rviz: OgreAxisAlignedBox.h:252:void Ogre::AxisAlignedBox::setExtents(const Ogre::Vector3&, const Ogre
::Vector3&): 假设(min.x <= max.x && min.y <= max.y && min.z <= max.z) && “The minimum corner of the box must be less than or equal to maximum corner”’ 失败


先看看报错的内容。
3D引擎包括Qt3D、osg、ogre,rviz的3d引擎是ogre。OgreAxisAlignedBox.h中的部分内容:

// 省略
/** Sets both minimum and maximum extents at once.
		*/
		inline void setExtents( const Vector3& min, const Vector3& max 
go atlas simflags=&quot;-P 2&quot; mesh x.m loc=0.00 spac=0.05 x.m loc=0.1 spac=0.02 x.m loc=0.51 spac=0.01 x.m loc=0.6 spac=0.1 x.m loc=0.69 spac=0.01 x.m loc=1.1 spac=0.02 x.m loc=1.2 spac=0.1 y.m loc=-0.3 spac=0.05 y.m loc=-0.21 spac=0.05 y.m loc=-0.01 spac=0.002 y.m loc=0 spac=0.002 y.m loc=10 spac=1 region number=1 x.min=0 x.max=1.2 y.min=0 y.max=10 material=silicon region number=2 x.min=0 x.max=1.2 y.min=-0.3 y.max=0 material=oxide region number=3 x.min=0.51 x.max=0.69 y.min=-0.21 y.max=-0.01 material=poly region number=4 x.min=0.51 x.max=0.69 y.min=-0.3 y.max=-0.21 material=aluminum region number=5 x.min=0 x.max=0.1 y.min=-0.3 y.max=0.0 material=aluminum region number=6 x.min=1.1 x.max=1.2 y.min=-0.3 y.max=0.0 material=aluminum electrode reg=4 name=gate electrode reg=5 name=source electrode reg=6 name=drain electrode bottom name=substrate doping uniform region=1 x.min=0 x.max=1.2 y.min=0 y.max=10 p.type concentration=3.01e16 doping uniform region=3 x.min=0.51 x.max=0.51 y.min=-0.21 y.max=-0.01 n.type concentration=5.02e20 doping gauss region=1 x.min=0 x.max=0.51 junc=0.05 rat=0.6 n.type concentration=5e16 doping gauss region=1 x.min=0.69 x.max=1.2 junc=0.05 rat=0.6 n.type concentration=5e16 doping gauss region=1 x.min=0 x.max=0.15 junc=0.2 rat=0.6 n.type concentration=5e20 doping gauss region=1 x.min=1.05 x.max=1.2 junc=0.2 rat=0.6 n.type concentration=5e20 save outf=nMOS_atlas.str tonyplot nMOS_atlas.str go atlas simflags=&quot;-P 10&quot; mesh inf=nMOS_atlas.str model mos interface qf=3e10 method newton itlimit=25 maxtrap=10 solve init solve vdrain=1 log outf=IdVg_Vd1.log solve vgate=0 vstep=0.05 vfinal=3 name=gate save outf=nMOS_Vd1.str tonyplot IdVg_Vd1.log solve init solve vdrain=3 log outf=IdVg_Vd3.log solve vgate=0 vstep=0.05 vfinal=3 name=gate save outf=nMOS_Vd3.str tonyplot IdVg_Vd3.log solve vgate=0 save outf=IdVd_Vg0.str master solve vgate=0.25 save outf=IdVd_Vg0.25.str master solve vgate=0.5 save outf=IdVd_Vg0.5.str master solve vgate=1 save outf=IdVd_Vg1.str master solve vgate=2 save outf=IdVd_Vg2.str master solve vgate=3 save outf=IdVd_Vg3.str master load inf=IdVd_Vg0.str master log outf=IdVd_Vg0.log solve vdrain=0 vstep=0.1 vfinal=10 name=drain load inf=IdVd_Vg0.25.str master log outf=IdVd_Vg0.25.log solve vdrain=0 vstep=0.1 vfinal=10 name=drain load inf=IdVd_Vg0.5.str master log outf=IdVd_Vg0.5.log solve vdrain=0 vstep=0.1 vfinal=10 name=drain load inf=IdVd_Vg1.str master log outf=IdVd_Vg1.log solve vdrain=0 vstep=0.1 vfinal=10 name=drain load inf=IdVd_Vg2.str master log outf=IdVd_Vg2.log solve vdrain=0 vstep=0.1 vfinal=10 name=drain load inf=IdVd_Vg3.str master log outf=IdVd_Vg3.log solve vdrain=0 vstep=0.1 vfinal=10 name=drain tonyplot IdVd_Vg0.log -overlay IdVd_Vg0.25.log -overlay IdVd_Vg0.5.log \ -overlay IdVd_Vg1.log -overlay IdVd_Vg2.log -overlay IdVd_Vg3.log tonyplot IdVg_Vd1.log -overlay IdVg_Vd3.log extract init inf=&quot;IdVg_Vd1.log&quot; extract name=&quot;vt&quot; (xintercept(maxslope(curve(abs(v.&quot;gate&quot;),abs(i.&quot;drain&quot;)))) - abs(ave(v.&quot;drain&quot;))/2.0) # extract device parameters extract name=&quot;nbeta&quot; slope(maxslope(curve(abs(v.&quot;gate&quot;),abs(i.&quot;drain&quot;)))) \ * (1.0/abs(ave(v.&quot;drain&quot;))) extract name=&quot;ntheta&quot; ((max(abs(v.&quot;drain&quot;)) * $&quot;nbeta&quot;)/max(abs(i.&quot;drain&quot;))) \ 用中文帮我分析一下每一步代表什么
06-27
评论 3
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值