Integrating Kuka LBR IIWA with ROS/Gazebo
I have recently started to work with Kuka LBR IIWA. My aim is to work with ros and make the robot simulate in gazebo. I am trying to setup ros packages ( https://github.com/SalvoVirga/iiwa_stack ) to work with Kuka LBR IIWA. I am using ubuntu 12.04 LTS and ros hydro. I finished cabinet setup, the project is uploaded to controller with no error or red sign in IDE. However, for roscore side, when I build the workspace, I found the following error:
afroza@afroza-XPS-8700:~/my_ws$ catkin build
-------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/hydro
Workspace: /home/afroza/my_ws
Source Space: [exists] /home/afroza/my_ws/src
Build Space: [exists] /home/afroza/my_ws/build
Devel Space: [exists] /home/afroza/my_ws/devel
Install Space: [missing] /home/afroza/my_ws/install
DESTDIR: None
-------------------------------------------------------
Isolate Develspaces: False
Install Packages: False
Isolate Installs: False
-------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
-------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------
Found '8' packages in 0.0 seconds.
Starting ==> iiwa
Starting ==> iiwa_control
Starting ==> iiwa_description
Starting ==> iiwa_gazebo
Starting ==> iiwa_msgs
Finished <== iiwa_gazebo [ 1.0 seconds ]
Finished <== iiwa [ 1.3 seconds ]
Finished <== iiwa_description [ 1.2 seconds ]
Finished <== iiwa_control [ 1.4 seconds ]
Starting ==> iiwa_moveit
Finished <== iiwa_moveit [ 0.4 seconds ]
Finished <== iiwa_msgs [ 4.8 seconds ]
Starting ==> iiwa_ros
[iiwa_ros] ==> '/home/afroza/my_ws/build/iiwa_ros/build_env.sh /usr/bin/make --jobserver-fds=3,5 -j' in '/home/afroza/my_ws/build/iiwa_ros'
Scanning dependencies of target iiwa_msgs_generate_messages_cpp
[ 0%] Built target iiwa_msgs_generate_messages_cpp
Scanning dependencies of target iiwa_ros
[ 50%] Building CXX object CMakeFiles/iiwa_ros.dir/src/iiwaRos.cpp.o
cc1plus: error: unrecognized command line option -std=c++11
make[2]: *** [CMakeFiles/iiwa_ros.dir/src/iiwaRos.cpp.o] Error 1
make[1]: *** [CMakeFiles/iiwa_ros.dir/all] Error 2
make: *** [all] Error 2
[iiwa_ros] <== '/home/afroza/my_ws/build/iiwa_ros/build_env.sh /usr/bin/make --jobserver-fds=3,5 -j' failed with return code '2'
Failed <== iiwa_ros [ 2.3 seconds ]
[build] There were '1' errors:
Failed to build package 'iiwa_ros' because the following command:
# Command to reproduce:
cd /home/afroza/my_ws/build/iiwa_ros && /home/afroza/my_ws/build/iiwa_ros/build_env.sh /usr/bin/make --jobserver-fds=3,5 -j; cd -
# Path to log:
cat /home/afroza/my_ws/build/build_logs/iiwa_ros.log
Exited with return code: 2
[build] Runtime: 7.6 seconds
Please guide me to fix this. Thank you