costashatz / nao_gazebo

ROS Packages to simulate Aldebaran's NAO Humanoid in Gazebo through NAOqi Simulator SDK
BSD 3-Clause "New" or "Revised" License
34 stars 19 forks source link

Package setup step! #4

Closed pourya-shahverdi closed 8 years ago

pourya-shahverdi commented 8 years ago

Hi dear developers I'm new in ros! How can I implement follow step of making nao_gazebo package?


Building/Compiling

You need to have either environmental variable AL_SIM_DIR or CMake option NAOqi_SIM_DIR pointing to the C++ NAOqi Simulator SDK path.

Also, you need to have either environmental variable AL_DIR or CMake option NAOqi_DIR pointing to the C++ NAOqi SDK path.

Check cmake/FindNAOqiSIM.cmake for more details.

King Regards Pourya

costashatz commented 8 years ago

Hello @pouryashahverdi! Welcome to the ROS community.

There are 2 ways of implementing this step (I suggest the first one):

Using environmental variables

You can check this guide for details on handling environmental variables in Ubuntu: https://help.ubuntu.com/community/EnvironmentVariables

But you only have to do the following:

in you .bashrc file:

export AL_SIM_DIR=path_to_simulator_sdk
export AL_DIR=path_to_naoqi_sdk

Using CMake

You only have to do the following:

In the CMakeLists.txt (of gazebo_naoqi_control):

Replace these two lines:

# Tell Program where to find NAOqi/NAOqiSIM bin
add_definitions(-DNAOQI_SDK="$ENV{AL_DIR}")
add_definitions(-DNAOQI_SIM_SDK="$ENV{AL_SIM_DIR}")

with:

# Tell Program where to find NAOqi/NAOqiSIM bin
add_definitions(-DNAOQI_SDK="path_to_naoqi_sdk")
add_definitions(-DNAOQI_SIM_SDK="path_to_sim_sdk")
pourya-shahverdi commented 8 years ago

Thanks a lot :) On Jan 25, 2016 12:29 AM, "Konstantinos Chatzilygeroudis" < notifications@github.com> wrote:

Hello @pouryashahverdi https://github.com/pouryashahverdi! Welcome to the ROS community.

There are 2 ways of implementing this step (I suggest the first one): Using environmental variables

You can check this guide for details on handling environmental variables in Ubuntu: https://help.ubuntu.com/community/EnvironmentVariables

But you only have to do the following:

in you .bashrc file:

export AL_SIM_DIR=path_to_simulator_sdkexport AL_DIR=path_to_naoqi_sdk

Using CMake

You only have to do the following:

In the CMakeLists.txt (of gazebo_naoqi_control):

Replace these two lines:

Tell Program where to find NAOqi/NAOqiSIM binadd_definitions(-DNAOQI_SDK="$ENV{AL_DIR}")add_definitions(-DNAOQI_SIM_SDK="$ENV{AL_SIM_DIR}")

with:

Tell Program where to find NAOqi/NAOqiSIM binadd_definitions(-DNAOQI_SDK="path_to_naoqi_sdk")add_definitions(-DNAOQI_SIM_SDK="path_to_sim_sdk")

— Reply to this email directly or view it on GitHub https://github.com/costashatz/nao_gazebo/issues/4#issuecomment-174341200 .

costashatz commented 8 years ago

@pouryashahverdi did it work?

sahmad98 commented 8 years ago

It is not working for me.

Error is

In file included from /home/saleem/catkin_ws/src/nao_gazebo/gazebo_naoqi_control/src/gazebo_naoqi_control_plugin.cpp:24:0: /home/saleem/catkin_ws/src/nao_gazebo/gazebo_naoqi_control/include/gazebo_naoqi_control/gazebo_naoqi_control_plugin.h:45:31: fatal error: alnaosim/alnaosim.h: No such file or directory

include <alnaosim/alnaosim.h>

                           ^

compilation terminated. make[2]: * [nao_gazebo/gazebo_naoqi_control/CMakeFiles/gazebo_naoqi_control.dir/src/gazebo_naoqi_control_plugin.cpp.o] Error 1 make[1]: * [nao_gazebo/gazebo_naoqi_control/CMakeFiles/gazebo_naoqi_control.dir/all] Error 2 make: *\ [all] Error 2 Invoking "make -j4 -l4" failed

costashatz commented 8 years ago

See #5 . Closing this..