[ros-users] [Discourse.ros.org] [Packaging and Release Management/Kinetic] About running catkin_make

Mustafa Gökçe ros.discourse at gmail.com
Wed May 23 20:43:55 UTC 2018





Hi.

I copied a repository from github and when i try to build i get this error:



    m at u:~/suruiha-ws$ catkin_make

    Base path: /home/m/suruiha-ws

    Source space: /home/m/suruiha-ws/src

    Build space: /home/m/suruiha-ws/build

    Devel space: /home/m/suruiha-ws/devel

    Install space: /home/m/suruiha-ws/install

    ####

    #### Running command: "make cmake_check_build_system" in "/home/m/suruiha-ws/build"

    ####

    ####

    #### Running command: "make -j4 -l4" in "/home/m/suruiha-ws/build"

    ####

    [ 20%] Built target uav_ground_control

    [ 30%] Building CXX object suruiha_gazebo_plugins/CMakeFiles/iris_controller.dir/src/iris_controller.cpp.o

    [ 40%] Building CXX object suruiha_gazebo_plugins/CMakeFiles/zephyr_controller.dir/src/zephyr_controller.cpp.o

    [ 50%] Building CXX object suruiha_gazebo_plugins/CMakeFiles/zephyr_controller.dir/src/joint_control.cpp.o

    [ 60%] Building CXX object suruiha_gazebo_plugins/CMakeFiles/zephyr_controller.dir/src/util.cpp.o

    /home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/joint_control.cpp: In member function void gazebo::JointControl::SetPosition(double, gazebo::common::Time):

    /home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/joint_control.cpp:50:44: error: class gazebo::physics::Joint has no member named Position

         const double currentPos = this->joint->Position(0);

                                                ^

    suruiha_gazebo_plugins/CMakeFiles/zephyr_controller.dir/build.make:86: recipe for target 'suruiha_gazebo_plugins/CMakeFiles/zephyr_controller.dir/src/joint_control.cpp.o' failed

    make[2]: *** [suruiha_gazebo_plugins/CMakeFiles/zephyr_controller.dir/src/joint_control.cpp.o] Error 1

    make[2]: *** Waiting for unfinished jobs....

    /home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/iris_controller.cpp: In member function virtual void gazebo::IrisController::UpdateStates():

    /home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/iris_controller.cpp:221:44: error: class gazebo::physics::World has no member named SimTime

          common::Time currTime = this->world_->SimTime();

                                                ^

    /home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/iris_controller.cpp:226:52: error: class gazebo::physics::Model has no member named WorldPose

            ignition::math::Pose3d pose = this->model_->WorldPose();

                                                        ^

    /home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/iris_controller.cpp: In member function void gazebo::IrisController::CalculateRotors(double, double, double, double, gazebo::common::Time):

    /home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/iris_controller.cpp:252:40: error: class gazebo::physics::Model has no member named WorldPose

      ignition::math::Pose3d pose = model_->WorldPose();

                                            ^

    /home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/zephyr_controller.cpp: In member function virtual void gazebo::ZephyrController::UpdateStates():

    /home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/zephyr_controller.cpp:119:44: error: class gazebo::physics::World has no member named SimTime

          common::Time currTime = this->world_->SimTime();

                                                ^

    /home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/zephyr_controller.cpp:124:52: error: class gazebo::physics::Model has no member named WorldPose

            ignition::math::Pose3d pose = this->model_->WorldPose();

                                                        ^

    /home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/zephyr_controller.cpp: In member function void gazebo::ZephyrController::CalculateJoints(double, double, double, gazebo::common::Time):

    /home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/zephyr_controller.cpp:152:47: error: class gazebo::physics::Model has no member named WorldPose

       ignition::math::Pose3d pose = this->model_->WorldPose();

                                                   ^

    suruiha_gazebo_plugins/CMakeFiles/iris_controller.dir/build.make:62: recipe for target 'suruiha_gazebo_plugins/CMakeFiles/iris_controller.dir/src/iris_controller.cpp.o' failed

    make[2]: *** [suruiha_gazebo_plugins/CMakeFiles/iris_controller.dir/src/iris_controller.cpp.o] Error 1

    CMakeFiles/Makefile2:1606: recipe for target 'suruiha_gazebo_plugins/CMakeFiles/iris_controller.dir/all' failed

    make[1]: *** [suruiha_gazebo_plugins/CMakeFiles/iris_controller.dir/all] Error 2

    make[1]: *** Waiting for unfinished jobs....

    suruiha_gazebo_plugins/CMakeFiles/zephyr_controller.dir/build.make:62: recipe for target 'suruiha_gazebo_plugins/CMakeFiles/zephyr_controller.dir/src/zephyr_controller.cpp.o' failed

    make[2]: *** [suruiha_gazebo_plugins/CMakeFiles/zephyr_controller.dir/src/zephyr_controller.cpp.o] Error 1

    CMakeFiles/Makefile2:481: recipe for target 'suruiha_gazebo_plugins/CMakeFiles/zephyr_controller.dir/all' failed

    make[1]: *** [suruiha_gazebo_plugins/CMakeFiles/zephyr_controller.dir/all] Error 2

    Makefile:138: recipe for target 'all' failed

    make: *** [all] Error 2

    Invoking "make -j4 -l4" failed



How can i solve this?

I know that the code is working, i saw it in the video of the person who shares it.

So something missing in my computer or i am doing something wrong.

Thanks...











---

[Visit Topic](https://discourse.ros.org/t/about-running-catkin-make/4870/1) or reply to this email to respond.









More information about the ros-users mailing list