Closed pourya-shahverdi closed 8 years ago
Hello @pouryashahverdi! Welcome to the ROS community.
There are 2 ways of implementing this step (I suggest the first one):
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
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")
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 .
@pouryashahverdi did it work?
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
^
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
See #5 . Closing this..
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