Comments (16)
@shimoe
PCLのインストールは行いましたか?
まだインストールしていない場合には,
https://github.com/RyodoTanaka/my_ubuntu_setup/blob/master/PCL/installer.bash
上記のインストールスクリプトを使ってインストールしてみてください.
方法は
- 上記のスクリプトを適当なファイル名で保存(ここでは
hoge.bash
とする) $ source hoge.bash
以上です.
from motoman_project.
@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.
@shimoe
PCLをインストール後、
<catkin_ws>/build
と<catkin_ws>/devel
を削除
した後,再度コンパイル(catkin_make
もしくはcatkin build
)をしても同様ですか?
from motoman_project.
@RyodoTanaka
はい、同様のエラーコードが出ました。
from motoman_project.
@shimoe
oh...
ちょっと時間をくださいm(_ _)m
from motoman_project.
@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
あと確認ですが,インストール時に
catkin_ws
にmotoman_project
をclone- wstool で必要パッケージを追加
rosdep install -i -y -r --from-paths src --ignore-src
を<catkin_ws>
で実行
という手順は踏んだ上でエラーが起きているということでOKですか?
from motoman_project.
@RyodoTanaka
はい
その手順を踏んだ上で上記のエラーが起きてます
from motoman_project.
@shimoe
私の環境では,
/usr/include/pcl-1.7/pcl/features/moment_of_inertia_estimation.h
にヘッダーがあります.
/usr/include/pcl-***/
の***の部分はどのようになっていますか?
from motoman_project.
@RyodoTanaka
pcl-1.7ですね・・・
from motoman_project.
@shimoe
Nooooooooooooooooooooooooooooooh!
もう少し時間をくださいm(_ _)m
from motoman_project.
@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.
@RyodoTanaka
/usr/include/pcl-1.7/pcl/features/
の中を見たところ
moment_of_inertia_estimation.h
が存在しませんでした。
似たようなヘッダファイルとして
moment_invariants.h
があります。
from motoman_project.
@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.
@RyodoTanaka
ダメみたいですね・・・
一応pcl-1.7
の中も確認しましたが存在しませんでした。
from motoman_project.
@shimoe
うーん
一番手っ取り早い解決策は、ソースコードを直接cloneしてきてインストールする方法です.
ただ、Travisでエラーが起きていない以上,なぜこのような現象が起きるのか調べる必要があります.
from motoman_project.
@RyodoTanaka
ソースコードを直接インストールして来てから
apt-get update及びapt-get uograde を行った後、ビルドしたら通りました。
回答有り難うございました
from motoman_project.
Related Issues (20)
- euclidean cluster が不安定 HOT 9
- Travisのビルドが通らない!! HOT 31
- Installation Problem , Help HOT 1
- hardware_interface::EffortJointInterface Issue HOT 4
- Compile error in package
- launch test が通らない HOT 13
- 本リポジトリがROS教育用サービスで利用されているようです HOT 4
- motomanをV-REPで動かしてみようのコーナー! HOT 2
- D-hand の gripper コントローラについて
- ブランチ整理について HOT 9
- Gazebo上でD-Handでpick & placeしたい(オブジェクト付き) HOT 4
- 一番はじめの catkin_make について (半解決済み) HOT 5
- catkin_makeについて HOT 5
- motomanのcalibrationに関して HOT 7
- Error : TF_DENORMALIZED_QUATERNION HOT 1
- rosrun motoman_calib motoman_calib できない HOT 1
- 実機実行時のmotoman_driverのエラー HOT 1
- オリジナルindustrial_moveitのエラー HOT 3
- Cmake Error "freenect2" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from motoman_project.