Giter Site home page Giter Site logo

Comments (16)

RyodoTanaka avatar RyodoTanaka commented on May 23, 2024

@shimoe
PCLのインストールは行いましたか?
まだインストールしていない場合には,
https://github.com/RyodoTanaka/my_ubuntu_setup/blob/master/PCL/installer.bash
上記のインストールスクリプトを使ってインストールしてみてください.

方法は

  1. 上記のスクリプトを適当なファイル名で保存(ここではhoge.bashとする)
  2. $ source hoge.bash

以上です.

from motoman_project.

shimoe avatar shimoe commented on May 23, 2024

@RyodoTanaka
していなかったようなので
installer.bash
を用いてインストールしましたが、再び以下のようなエラーコードが出ました。

[ 68%] Building CXX object motoman_tools/iai_kinect2/kinect2_bridge/CMakeFiles/kinect2_bridge.dir/src/kinect2_bridge.cpp.o
In file included from /home/shimoe/motoman_ws/src/motoman_project/motoman_recognition/motoman_euclidean_cluster/src/euclidean_cluster.cpp:2:0:
/home/shimoe/motoman_ws/src/motoman_project/motoman_recognition/motoman_euclidean_cluster/src/../include/euclidean_cluster.hpp:19:55: fatal error: pcl/features/moment_of_inertia_estimation.h: そのようなファイルやディレクトリはありません
#include <pcl/features/moment_of_inertia_estimation.h>
^
compilation terminated.
In file included from /home/shimoe/motoman_ws/src/motoman_project/motoman_recognition/motoman_euclidean_cluster/src/euclidean_cluster_node.cpp:1:0:
/home/shimoe/motoman_ws/src/motoman_project/motoman_recognition/motoman_euclidean_cluster/include/euclidean_cluster.hpp:19:55: fatal error: pcl/features/moment_of_inertia_estimation.h: そのようなファイルやディレクトリはありません
#include <pcl/features/moment_of_inertia_estimation.h>
^
compilation terminated.

from motoman_project.

RyodoTanaka avatar RyodoTanaka commented on May 23, 2024

@shimoe
PCLをインストール後、

  • <catkin_ws>/build<catkin_ws>/develを削除

した後,再度コンパイル(catkin_makeもしくはcatkin build)をしても同様ですか?

from motoman_project.

shimoe avatar shimoe commented on May 23, 2024

@RyodoTanaka
はい、同様のエラーコードが出ました。

from motoman_project.

RyodoTanaka avatar RyodoTanaka commented on May 23, 2024

@shimoe
oh...
ちょっと時間をくださいm(_ _)m

from motoman_project.

RyodoTanaka avatar RyodoTanaka commented on May 23, 2024

@shimoe
こんなissueを発見しました.
http://www.pcl-users.org/Moment-of-Inertia-include-error-td4041827.html
上記issueでは,PCL-ROS依存のヘッダーであるかもとの結論に至っています.

そこで,

$ sudo apt-get install ros-indigo-pcl-ros

を実行後も同様のエラーが出るかどうか調べてみてくださいm(_ _)m

あと確認ですが,インストール時に

  1. catkin_wsmotoman_projectをclone
  2. wstool で必要パッケージを追加
  3. rosdep install -i -y -r --from-paths src --ignore-src<catkin_ws>で実行

という手順は踏んだ上でエラーが起きているということでOKですか?

from motoman_project.

shimoe avatar shimoe commented on May 23, 2024

@RyodoTanaka
はい
その手順を踏んだ上で上記のエラーが起きてます

from motoman_project.

RyodoTanaka avatar RyodoTanaka commented on May 23, 2024

@shimoe
私の環境では,
/usr/include/pcl-1.7/pcl/features/moment_of_inertia_estimation.h
にヘッダーがあります.

/usr/include/pcl-***/
の***の部分はどのようになっていますか?

from motoman_project.

shimoe avatar shimoe commented on May 23, 2024

@RyodoTanaka
pcl-1.7ですね・・・

from motoman_project.

RyodoTanaka avatar RyodoTanaka commented on May 23, 2024

@shimoe
Nooooooooooooooooooooooooooooooh!
もう少し時間をくださいm(_ _)m

from motoman_project.

RyodoTanaka avatar RyodoTanaka commented on May 23, 2024

@shimoe
pcl-1.7.2rc1以上でないと、問題になっているヘッダーが存在しないというところまで確認しました.
紹介したinstaller.bashでどのバージョンが引っ張ってこられるのかを確認してみます.
https://github.com/PointCloudLibrary/pcl/blob/pcl-1.7.2rc1/features/include/pcl/features/moment_of_inertia_estimation.h

つまり,問題の環境では1.7.0〜1.7.1のバージョンが入ってしまっている事になります.

from motoman_project.

shimoe avatar shimoe commented on May 23, 2024

@RyodoTanaka
/usr/include/pcl-1.7/pcl/features/
の中を見たところ
moment_of_inertia_estimation.h
が存在しませんでした。

似たようなヘッダファイルとして
moment_invariants.h
があります。

from motoman_project.

RyodoTanaka avatar RyodoTanaka commented on May 23, 2024

@shimoe
調べたところ,引っ張って来られるpclのバージョンは1.7.2のようでした
https://launchpad.net/%7Ev-launchpad-jochen-sprickerhof-de/+archive/ubuntu/pcl/+index?field.series_filter=trusty

$ sudo apt-get install libpcl-1.7-all 
$ cd <catkin_ws>
$ rm -rf <catkin_ws>/build
$ rm -rf <catkin_ws>/devel
$ catkin_make

を行っても同様ですか?

from motoman_project.

shimoe avatar shimoe commented on May 23, 2024

@RyodoTanaka
ダメみたいですね・・・
一応pcl-1.7の中も確認しましたが存在しませんでした。

from motoman_project.

RyodoTanaka avatar RyodoTanaka commented on May 23, 2024

@shimoe
うーん
一番手っ取り早い解決策は、ソースコードを直接cloneしてきてインストールする方法です.
ただ、Travisでエラーが起きていない以上,なぜこのような現象が起きるのか調べる必要があります.

from motoman_project.

shimoe avatar shimoe commented on May 23, 2024

@RyodoTanaka
ソースコードを直接インストールして来てから
apt-get update及びapt-get uograde を行った後、ビルドしたら通りました。

回答有り難うございました

from motoman_project.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.