国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

《視覺SLAM十四講》報(bào)錯(cuò)信息和解決方案

這篇具有很好參考價(jià)值的文章主要介紹了《視覺SLAM十四講》報(bào)錯(cuò)信息和解決方案。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

ch4-Sophus編譯報(bào)錯(cuò)

  • 報(bào)錯(cuò)信息:
error: lvalue required as left operand of assignment
   unit_complex_.real() = 1.;
                          ^~
error: lvalue required as left operand of assignment
   unit_complex_.imag() = 0.;
                          ^~
CMakeFiles/Sophus.dir/build.make:65: recipe for target 'CMakeFiles/Sophus.dir/sophus/so2.cpp.o' failed
  • 解決方法:修改Sophus下的so2.cpp文件
    • 將下面這個(gè)修改一下:

      unit_complex_.real() = 1.;
      unit_complex_.imag() = 0.;
      
    • 修改為:

      unit_complex_.real(1.);
      unit_complex_.imag(0.);
      

ch5/imageBasics安裝opencv4.x報(bào)錯(cuò)

  • 環(huán)境:Unbuntu22.04,安裝opencv4.x
  • 報(bào)錯(cuò)信息:
libgtk2.0-dev : 依賴: libgdk-pixbuf-2.0-dev (>= 2.21.0) 但無(wú)法安裝它 或 libgdk-pixbuf2.0-dev (>= 2.21.0) 但無(wú)法安裝它
  • 解決方案:參照https://blog.csdn.net/qq_51022848/article/details/128095476

ch5/joinMap/CMakeLists.txt編譯報(bào)錯(cuò)

  • 報(bào)錯(cuò)信息:
error: #error PCL requires C++14 or above
  • 我的解決方案:注釋掉關(guān)于 c++11特性的設(shè)置
# set( CMAKE_CXX_FLAGS "-std=c++11 -O3")

ch5/joinMap-pcl_viewer map.pcd報(bào)錯(cuò)

  • 環(huán)境:Mac中的Ubuntu22.04虛擬機(jī)

  • 報(bào)錯(cuò)信息:在生成map.pcd地圖之后執(zhí)行pcl_viewer map.pcd報(bào)錯(cuò):

    $ ch5/joinMap$ pcl_viewer map.pcd 
    2023-07-31 21:33:35.519 (   0.006s) [        C7314880] vtkContextDevice2D.cxx:32    WARN| Error: no override found for 'vtkContextDevice2D'.
    The viewer window provides interactive commands; for help, press 'h' or 'H' from within the window.
    > Loading map.pcd 2023-07-31 21:33:35.647 (   0.134s) [        C7314880]vtkOpenGLRenderWindow.c:499    ERR| vtkXOpenGLRenderWindow (0x563c2ae6cf10): Unable to find a valid OpenGL 3.2 or later implementation. Please update your video card driver to the latest version. If you are using Mesa please make sure you have version 11.2 or later and make sure your driver in Mesa supports OpenGL 3.2 such as llvmpipe or openswr. If you are on windows and using Microsoft remote desktop note that it only supports OpenGL 3.2 with nvidia quadro cards. You can use other remoting software such as nomachine to avoid this issue.
    2023-07-31 21:33:35.647 (   0.134s) [        C7314880]     vtkOpenGLState.cxx:1795  WARN| Hardware does not support the number of textures defined.
    2023-07-31 21:33:35.647 (   0.134s) [        C7314880]     vtkOpenGLState.cxx:1795  WARN| Hardware does not support the number of textures defined.
    2023-07-31 21:33:35.648 (   0.134s) [        C7314880]     vtkOpenGLState.cxx:1795  WARN| Hardware does not support the number of textures defined.
    2023-07-31 21:33:35.648 (   0.135s) [        C7314880]     vtkOpenGLState.cxx:1795  WARN| Hardware does not support the number of textures defined.
    2023-07-31 21:33:35.648 (   0.135s) [        C7314880]     vtkOpenGLState.cxx:1795  WARN| Hardware does not support the number of textures defined.
    2023-07-31 21:33:35.648 (   0.135s) [        C7314880]     vtkOpenGLState.cxx:1795  WARN| Hardware does not support the number of textures defined.
    2023-07-31 21:33:35.648 (   0.135s) [        C7314880]     vtkOpenGLState.cxx:1795  WARN| Hardware does not support the number of textures defined.
    [PCLVisualizer::setUseVbos] Has no effect when OpenGL version is ≥ 2
    2023-07-31 21:33:35.655 (   0.141s) [        C7314880]   vtkTextureObject.cxx:1463   ERR| vtkTextureObject (0x563c2b3b8c90): Failed to determine texture parameters. IF=0 F=6408 T=5121
    2023-07-31 21:33:35.655 (   0.141s) [        C7314880]     vtkOpenGLState.cxx:1795  WARN| Hardware does not support the number of textures defined.
    2023-07-31 21:33:35.655 (   0.142s) [        C7314880]     vtkOpenGLState.cxx:1795  WARN| Hardware does not support the number of textures defined.
    2023-07-31 21:33:35.665 (   0.152s) [        C7314880]   vtkShaderProgram.cxx:437    ERR| vtkShaderProgram (0x563c2b250fb0): 1: #version 150
    2: #ifndef GL_ES
    3: #define highp
    4: #define mediump
    5: #define lowp
    6: #endif // GL_ES
    7: #define attribute in
    8: #define varying out
    9: 
    10: 
    11: /*=========================================================================
    12: 
    13:   Program:   Visualization Toolkit
    14:   Module:    vtkPolyData2DVS.glsl
    15: 
    16:   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
    17:   All rights reserved.
    18:   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
    19: 
    20:      This software is distributed WITHOUT ANY WARRANTY; without even
    21:      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    22:      PURPOSE.  See the above copyright notice for more information.
    23: 
    24: =========================================================================*/
    25: 
    26: // all variables that represent positions or directions have a suffix
    27: // indicating the coordinate system they are in. The possible values are
    28: // MC - Model Coordinates
    29: // WC - WC world coordinates
    30: // VC - View Coordinates
    31: // DC - Display Coordinates
    32: 
    33: in vec4 vertexWC;
    34: 
    35: // material property values
    36: //VTK::Color::Dec
    37: 
    38: // Texture coordinates
    39: in vec2 tcoordMC; out vec2 tcoordVCVSOutput;
    40: 
    41: // Apple Bug
    42: //VTK::PrimID::Dec
    43: 
    44: uniform mat4 WCVCMatrix;  // World to view matrix
    45: 
    46: void main()
    47: {
    48:   // Apple Bug
    49:   //VTK::PrimID::Impl
    50: 
    51:   gl_Position = WCVCMatrix*vertexWC;
    52:   tcoordVCVSOutput = tcoordMC;
    53:   //VTK::Color::Impl
    54: }
    
    2023-07-31 21:33:35.665 (   0.152s) [        C7314880]   vtkShaderProgram.cxx:438    ERR| vtkShaderProgram (0x563c2b250fb0): 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES
    
    2023-07-31 21:33:35.665 (   0.152s) [        C7314880]   vtkShaderProgram.cxx:437    ERR| vtkShaderProgram (0x563c2b246170): 1: #version 150
    2: #ifndef GL_ES
    3: #define highp
    4: #define mediump
    5: #define lowp
    6: #endif // GL_ES
    7: #define attribute in
    8: #define varying out
    9: 
    10: in vec4 ndCoordIn;
    11: in vec2 texCoordIn;
    12: out vec2 texCoord;
    13: void main()
    14: {
    15:   gl_Position = ndCoordIn;
    16:   texCoord = texCoordIn;
    17: }
    
    2023-07-31 21:33:35.665 (   0.152s) [        C7314880]   vtkShaderProgram.cxx:438    ERR| vtkShaderProgram (0x563c2b246170): 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES
    
    2023-07-31 21:33:35.665 (   0.152s) [        C7314880]vtkOpenGLVertexArrayObj:265    ERR| vtkOpenGLVertexArrayObject (0x563c2b7bf8b0): attempt to add attribute without a program for attribute ndCoordIn
    2023-07-31 21:33:35.665 (   0.152s) [        C7314880]vtkOpenGLQuadHelper.cxx:62    WARN| Error binding ndCoords to VAO.
    2023-07-31 21:33:35.665 (   0.152s) [        C7314880]vtkOpenGLRenderWindow.c:932    ERR| vtkXOpenGLRenderWindow (0x563c2ae6cf10): Couldn't build the shader program for depth blits
    段錯(cuò)誤 (核心已轉(zhuǎn)儲(chǔ))
    
  • 核心報(bào)錯(cuò)信息:vtkShaderProgram (0x563c2b246170): 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES

  • 可能的解決方案:在Ubuntu虛擬機(jī)中運(yùn)行OpenGL程序時(shí),可能會(huì)遇到一些限制,因?yàn)樘摂M機(jī)可能無(wú)法直接訪問(wèn)主機(jī)系統(tǒng)的顯卡硬件。這可能導(dǎo)致OpenGL實(shí)現(xiàn)不支持較高版本的GLSL。要解決這個(gè)問(wèn)題,您可以嘗試以下方法:

    • 啟用3D加速:確保您的虛擬機(jī)軟件(如VirtualBox、VMware等)已啟用3D加速。這通常可以在虛擬機(jī)設(shè)置的顯示或圖形部分找到。啟用3D加速后,虛擬機(jī)將嘗試使用主機(jī)系統(tǒng)的顯卡來(lái)提供更好的OpenGL支持。
    • 安裝虛擬機(jī)工具:確保您已安裝了虛擬機(jī)軟件提供的增強(qiáng)工具(如VirtualBox Guest Additions、VMware Tools等)。這些工具通常包含了針對(duì)虛擬機(jī)優(yōu)化的圖形驅(qū)動(dòng)程序,可以提高OpenGL性能和兼容性。

    • 使用軟件渲染(我是通過(guò)這個(gè)解決的):如果您無(wú)法啟用3D加速或安裝虛擬機(jī)工具,您可以嘗試使用軟件渲染。這將使用CPU而不是GPU來(lái)渲染OpenGL圖形,性能可能較差,但可以提供更廣泛的GLSL支持。在Ubuntu中,您可以安裝Mesa的軟件渲染器,例如llvmpipe。要安裝llvmpipe,請(qǐng)運(yùn)行以下命令:

      sudo apt-get install libgl1-mesa-swx11
      
    • 安裝完成后,您可以通過(guò)設(shè)置LIBGL_ALWAYS_SOFTWARE=1環(huán)境變量來(lái)強(qiáng)制使用軟件渲染:文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-621762.html

      export LIBGL_ALWAYS_SOFTWARE=1 
      

到了這里,關(guān)于《視覺SLAM十四講》報(bào)錯(cuò)信息和解決方案的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • 《視覺 SLAM 十四講》V2 第 5 講 相機(jī)與圖像

    《視覺 SLAM 十四講》V2 第 5 講 相機(jī)與圖像

    空間點(diǎn) 投影到 相機(jī)成像平面 前面內(nèi)容總結(jié): 1、機(jī)器人如何表示自身位姿 視覺SLAM: 觀測(cè) 主要是指 相機(jī)成像 的過(guò)程 。 投影過(guò)程描述: 針孔 + 畸變 相機(jī) 內(nèi)參 外參 像素坐標(biāo)系 與 成像平面之間,相差了一個(gè)縮放 和一個(gè)原點(diǎn)的平移。 像素坐標(biāo)系: 原點(diǎn) o ′ o^{prime} o ′ 位

    2024年02月07日
    瀏覽(23)
  • 視覺SLAM十四講|【五】相機(jī)與IMU時(shí)間戳同步

    Z [ u v 1 ] = [ f x 0 c x 0 f y c y 0 0 1 ] [ X Y Z ] = K P Z begin{bmatrix} u \\\\ v \\\\ 1 end{bmatrix}= begin{bmatrix} f_x 0 c_x \\\\ 0 f_y c_y \\\\ 0 0 1 end{bmatrix} begin{bmatrix} X \\\\ Y \\\\ Z end{bmatrix}= KP Z ? u v 1 ? ? = ? f x ? 0 0 ? 0 f y ? 0 ? c x ? c y ? 1 ? ? ? X Y Z ? ? = K P 其中, K = [ f x 0 c x 0 f y c y 0 0

    2024年01月20日
    瀏覽(29)
  • 踩坑 Sophus 模板庫(kù)安裝及編譯(視覺SLAM 十四講第二版 ch4 )

    踩坑 Sophus 模板庫(kù)安裝及編譯(視覺SLAM 十四講第二版 ch4 )

    在《視覺slam十四講》第二版中,第4、7、8、9、10講都需要Sophus庫(kù),因此我們需要安裝Sophus庫(kù),并且需要的是Sophus模板庫(kù),因此很多人因?yàn)榘惭b了非模板版本導(dǎo)致報(bào)錯(cuò),下面提供Sophus模板版本安裝方式,以及對(duì)應(yīng)不報(bào)錯(cuò)版本。 只要是?3.3以上的版本即可 官網(wǎng)進(jìn)入,然后下載T

    2024年01月22日
    瀏覽(18)
  • 《視覺 SLAM 十四講》V2 第 4 講 李群與李代數(shù) 【什么樣的相機(jī)位姿 最符合 當(dāng)前觀測(cè)數(shù)據(jù)】

    《視覺 SLAM 十四講》V2 第 4 講 李群與李代數(shù) 【什么樣的相機(jī)位姿 最符合 當(dāng)前觀測(cè)數(shù)據(jù)】

    P71 什么樣的相機(jī)位姿 最符合 當(dāng)前觀測(cè)數(shù)據(jù)。 求解最優(yōu)的 R , t bm{R, t} R , t , 使得誤差最小化。 群 : 只有一個(gè)(良好的)運(yùn)算的集合。 封結(jié)幺逆 、 豐儉由你 李群 : 具有連續(xù)(光滑)性質(zhì)的群。 在 t = 0 附近,旋轉(zhuǎn)矩陣可以由 e x p ( ? 0 ∧ t ) exp(phi_0^{land}t) e x p ( ? 0 ∧ ? t

    2024年02月07日
    瀏覽(28)
  • slam十四講~環(huán)境安裝以及問(wèn)題記錄

    slam十四講~環(huán)境安裝以及問(wèn)題記錄

    參考資料: https://zhuanlan.zhihu.com/p/452256687 https://blog.csdn.net/qq_38629044/article/details/95355859 https://blog.csdn.net/Bonaventure/article/details/122835996 https://blog.csdn.net/weixin_44986556/article/details/108962861 https://blog.csdn.net/qq_38364548/article/details/122055690 https://blog.csdn.net/rong11417/article/details/103905794 http

    2023年04月15日
    瀏覽(35)
  • 機(jī)器人學(xué)|手機(jī)玻璃加工全自動(dòng)化——AGV+機(jī)器人+視覺解決方案(含雙目三維視覺SLAM建圖、MATLAB的AGV路徑規(guī)劃導(dǎo)航避障、六軸機(jī)械手臂建模與路徑規(guī)劃仿真,附帶源代碼)

    機(jī)器人學(xué)|手機(jī)玻璃加工全自動(dòng)化——AGV+機(jī)器人+視覺解決方案(含雙目三維視覺SLAM建圖、MATLAB的AGV路徑規(guī)劃導(dǎo)航避障、六軸機(jī)械手臂建模與路徑規(guī)劃仿真,附帶源代碼)

    文章目錄 前言 一、國(guó)內(nèi)外移動(dòng)操作機(jī)器人現(xiàn)狀 二、方案概述 三、主要部件BOM清單 1.差動(dòng)輪式AGV: 2.UR5系列機(jī)械臂 3.Cognex智能相機(jī) 4.加工臺(tái) 5.控制系統(tǒng) 6.電源和電纜 四、技術(shù)點(diǎn)及工作流程 五、計(jì)算自動(dòng)化方案與人工方案成本收回時(shí)間 1.自動(dòng)化方案成本分析: 2.人工方案成本

    2024年01月22日
    瀏覽(16)
  • jenkin構(gòu)建報(bào)錯(cuò)信息及解決方案

    jenkin構(gòu)建報(bào)錯(cuò)信息及解決方案

    報(bào)錯(cuò)信息1:Exception when publishing, exception message 最近一直在做Jenkins項(xiàng)目,也經(jīng)常會(huì)出現(xiàn)一些報(bào)錯(cuò)信息,今天在測(cè)試的時(shí)候出現(xiàn)了下面的報(bào)錯(cuò)信息,所以現(xiàn)在記錄一下我的報(bào)錯(cuò)過(guò)程及解決方案。 原因及解決辦法 : 在我思考并查找后發(fā)現(xiàn)原因是我的連接的后端服務(wù)器IP地址改變了

    2024年02月11日
    瀏覽(17)
  • 記報(bào)錯(cuò)信息:java.lang.IllegalArgumentException: MALFORMED解決方案

    在調(diào)用JDK自帶的zipfile讀取壓縮包文件的時(shí)候,出現(xiàn)了以下錯(cuò)誤: SjXcmcFeignClient:124 - BaseFeignClient 攔截到【未知系統(tǒng)異常】Exception異常: java.lang.IllegalArgumentException: MALFORMED[1] at java.util.zip.ZipCoder.toString(ZipCoder.java:65) at java.util.zip.ZipFile.getZipEntry(ZipFile.java:583) at java.util.zip.ZipFile.ac

    2024年02月05日
    瀏覽(97)
  • 自學(xué)SLAM(8)《第四講:相機(jī)模型與非線性優(yōu)化》作業(yè)

    自學(xué)SLAM(8)《第四講:相機(jī)模型與非線性優(yōu)化》作業(yè)

    小編研究生的研究方向是視覺SLAM,目前在自學(xué),本篇文章為初學(xué)高翔老師課的第四次作業(yè)。 現(xiàn)實(shí)?活中的圖像總存在畸變。原則上來(lái)說(shuō),針孔透視相機(jī)應(yīng)該將三維世界中的直線投影成直線,但是當(dāng)我們使???和魚眼鏡頭時(shí),由于畸變的原因,直線在圖像?看起來(lái)是扭曲的

    2024年02月05日
    瀏覽(26)
  • Git第十四講 Git標(biāo)簽管理

    Git標(biāo)簽是用于標(biāo)記項(xiàng)目中的特定版本的重要工具。它們通常用于標(biāo)識(shí)發(fā)布版本或里程碑。本文將介紹如何在Git中創(chuàng)建、查看和管理標(biāo)簽。 要在Git中創(chuàng)建一個(gè)標(biāo)簽,可以使用 git tag 命令。有兩種類型的標(biāo)簽:輕量標(biāo)簽和附注標(biāo)簽。 輕量標(biāo)簽 輕量標(biāo)簽是指向特定提交的靜態(tài)引用

    2024年02月09日
    瀏覽(19)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包