質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
GitHub

GitHubは、Gitバージョン管理システムを利用したソフトウェア開発向けの共有ウェブサービスです。GitHub商用プランおよびオープンソースプロジェクト向けの無料アカウントを提供しています。

Q&A

1回答

6232閲覧

maxonmoterをrosで動かしたいのですがcatkin_makeで詰まっています

xxkeitoxx

総合スコア10

GitHub

GitHubは、Gitバージョン管理システムを利用したソフトウェア開発向けの共有ウェブサービスです。GitHub商用プランおよびオープンソースプロジェクト向けの無料アカウントを提供しています。

0グッド

0クリップ

投稿2019/01/15 11:13

nvidia jetson tx2にてmaxonのepos4をrosによって動かそうとしているところです。githubにて公開されているeposx_hardwareを使用したいと考えているところでcatkin_makeが上手くいっていません。メッセージからココらへんをいじると解決しないかというアドバイスがあればお願いしたいです。

catkin_make
Base path: /home/nvidia/catkin_ws1
Source space: /home/nvidia/catkin_ws1/src
Build space: /home/nvidia/catkin_ws1/build
Devel space: /home/nvidia/catkin_ws1/devel
Install space: /home/nvidia/catkin_ws1/install

Running command: "cmake /home/nvidia/catkin_ws1/src -DCATKIN_DEVEL_PREFIX=/home/nvidia/catkin_ws1/devel -DCMAKE_INSTALL_PREFIX=/home/nvidia/catkin_ws1/install -G Unix Makefiles" in "/home/nvidia/catkin_ws1/build"

-- Using CATKIN_DEVEL_PREFIX: /home/nvidia/catkin_ws1/devel
-- Using CMAKE_PREFIX_PATH: /home/nvidia/cat_ws/devel;/opt/ros/kinetic
-- This workspace overlays: /home/nvidia/cat_ws/devel;/opt/ros/kinetic
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/nvidia/catkin_ws1/build/test_results
-- Found gmock sources under '/usr/src/gmock': gmock will be built
-- Found gtest sources under '/usr/src/gmock': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.14
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 4 packages in topological order:
-- ~~ - eposx_library
-- ~~ - battery_state_interface
-- ~~ - dynamic_joint_limits_interface
-- ~~ - eposx_hardware
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'eposx_library'
-- ==> add_subdirectory(eposx_hardware/eposx_library)
-- Detected architecture: x86_64
-- +++ processing catkin package: 'battery_state_interface'
-- ==> add_subdirectory(battery_state_interface)
-- +++ processing catkin package: 'dynamic_joint_limits_interface'
-- ==> add_subdirectory(dynamic_joint_limits_interface)
-- +++ processing catkin package: 'eposx_hardware'
-- ==> add_subdirectory(eposx_hardware/eposx_hardware)
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- program_options
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nvidia/catkin_ws1/build

Running command: "make -j4 -l4" in "/home/nvidia/catkin_ws1/build"

Scanning dependencies of target ftd2xx
Scanning dependencies of target EposCmd
Scanning dependencies of target fake_hardware_node
[ 5%] Linking CXX shared library /home/nvidia/catkin_ws1/devel/lib/libftd2xx.so
[ 10%] Linking CXX shared library /home/nvidia/catkin_ws1/devel/lib/libEposCmd.so
[ 15%] Building CXX object dynamic_joint_limits_interface/CMakeFiles/fake_hardware_node.dir/src/fake_hardware_node.cpp.o
[ 15%] Built target EposCmd
[ 15%] Built target ftd2xx
Scanning dependencies of target epos_library_utils
[ 21%] Building CXX object eposx_hardware/eposx_hardware/CMakeFiles/epos_library_utils.dir/src/util/utils.cpp.o
[ 26%] Linking CXX shared library /home/nvidia/catkin_ws1/devel/lib/libepos_library_utils.so
/home/nvidia/catkin_ws1/devel/lib/libftd2xx.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
eposx_hardware/eposx_hardware/CMakeFiles/epos_library_utils.dir/build.make:134: recipe for target '/home/nvidia/catkin_ws1/devel/lib/libepos_library_utils.so' failed
make[2]: *** [/home/nvidia/catkin_ws1/devel/lib/libepos_library_utils.so] Error 1
CMakeFiles/Makefile2:1896: recipe for target 'eposx_hardware/eposx_hardware/CMakeFiles/epos_library_utils.dir/all' failed
make[1]: *** [eposx_hardware/eposx_hardware/CMakeFiles/epos_library_utils.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 31%] Linking CXX executable /home/nvidia/catkin_ws1/devel/lib/dynamic_joint_limits_interface/fake_hardware_node
[ 31%] Built target fake_hardware_node
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

### 試したこと `eposx_hardwareは派生元にepos_hardwareがあり、先にそちらを試したところほぼ同様 のエラーを吐いています。 catkin_make -jのコマンドを打ってのcatkin_makeを行ったところInvoking "make -j" failedとなりました。  sudo apt-get updateおよびsudo apt-get upgradeを行ってのcatkin_makeを行いました。  以下の操作をしてからのcatkin_makeを行いました。 ~/catkin_ws$ sudo rm -r build/ ~/catkin_ws$ sudo rm -r devel/ ~/catkin_ws$ cd src ~/catkin_ws/src$ catkin_init_workspace acer、Ubuntu 16.04.2 LTSにてepos_hardwareをcatkin_makeしましたところ以下のようなメッセージが出ました In file included from /home/control/catkin_ws11/src/epos_hardware/epos_hardware/src/util/epos_hardware.cpp:1:0: /home/control/catkin_ws11/src/epos_hardware/epos_hardware/include/epos_hardware/epos_hardware.h:32:10: error: ‘scoped_ptr’ in namespace ‘boost’ does not name a template type boost::scoped_ptr<transmission_interface::TransmissionInterfaceLoader> transm ^ /home/control/catkin_ws11/src/epos_hardware/epos_hardware/src/util/epos_hardware.cpp: In constructor ‘epos_hardware::EposHardware::EposHardware(ros::NodeHandle&, ros::NodeHandle&, const std::vector<std::__cxx11::basic_string<char> >&)’: /home/control/catkin_ws11/src/epos_hardware/epos_hardware/src/util/epos_hardware.cpp:11:5: error: ‘transmission_loader’ was not declared in this scope transmission_loader.reset(new transmission_interface::TransmissionInterface ^ /home/control/catkin_ws11/src/epos_hardware/epos_hardware/src/util/epos_hardware.cpp:64:12: error: ‘transmission_loader’ was not declared in this scope if (!transmission_loader->load(info)) { ^ epos_hardware/epos_hardware/CMakeFiles/epos_hardware.dir/build.make:62: ターゲット 'epos_hardware/epos_hardware/CMakeFiles/epos_hardware.dir/src/util/epos_hardware.cpp.o' のレシピで失敗しました make[2]: *** [epos_hardware/epos_hardware/CMakeFiles/epos_hardware.dir/src/util/epos_hardware.cpp.o] エラー 1 CMakeFiles/Makefile2:534: ターゲット 'epos_hardware/epos_hardware/CMakeFiles/epos_hardware.dir/all' のレシピで失敗しました make[1]: *** [epos_hardware/epos_hardware/CMakeFiles/epos_hardware.dir/all] エラー 2 Makefile:138: ターゲット 'all' のレシピで失敗しました make: *** [all] エラー 2 Invoking "make -j4 -l4" failed

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

私もこのパッケージの導入を試みてます。
私の場合はcatkin_makeまでは通りました。

catkin_ws/src内で
$ git clone https://github.com/RIVeR-Lab/epos_hardware.git

その後catkin_makeをしましたが、
Could not find a package configuration file provided by
"battery_state_interface" with any of the following names:

battery_state_interfaceConfig.cmake battery_state_interface-config.cmake

と出たので、以下からbattery_state_interfaceを導入しました。
$ git clone https://github.com/yoshito-n-students/battery_state_interface.git

その後、catkin_makeをしましたが、
Could not find a package configuration file provided by
"dynamic_joint_limits_interface" with any of the following names:

dynamic_joint_limits_interfaceConfig.cmake dynamic_joint_limits_interface-config.cmake

と出たので、以下からdynamic_joint_limits_interfaceを導入しました。
git clone https://github.com/yoshito-n-students/dynamic_joint_limits_interface.git
その後のcatkin_makeは成功しています。

投稿2019/07/12 01:31

bonbon28

総合スコア10

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問