I've been trying to compile the vrep ros plugin, using the the tutorial in this page. I'm have compiled the vrep_common package, but I'm having errors in trying to compile vrep_plugin. Here is the log
nickstu@nickstu-asus:/opt/ros/groovy/stacks/vrep/vrep_plugin$ make
mkdir -p bin
cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=/opt/ros/groovy/share/ros/core/rosbuild/rostoolchain.cmake ..
[rosbuild] Building package vrep_plugin
-- Using CATKIN_DEVEL_PREFIX: /opt/ros/groovy/stacks/vrep/vrep_plugin/build/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/groovy
-- This workspace overlays: /opt/ros/groovy
-- Using Debian Python package layout
-- Using CATKIN_ENABLE_TESTING: ON
-- Skip enable_testing() for dry packages
-- Using CATKIN_TEST_RESULTS_DIR: /opt/ros/groovy/stacks/vrep/vrep_plugin/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- catkin 0.5.71
[rosbuild] Including /opt/ros/groovy/share/roslisp/rosbuild/roslisp.cmake
[rosbuild] Including /opt/ros/groovy/share/roscpp/rosbuild/roscpp.cmake
[rosbuild] Including /opt/ros/groovy/share/rospy/rosbuild/rospy.cmake
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_TOOLCHAIN_FILE
-- Build files have been written to: /opt/ros/groovy/stacks/vrep/vrep_plugin/build
cd build && make
make[1]: Entering directory `/opt/ros/groovy/stacks/vrep/vrep_plugin/build'
make[2]: Entering directory `/opt/ros/groovy/stacks/vrep/vrep_plugin/build'
make[3]: Entering directory `/opt/ros/groovy/stacks/vrep/vrep_plugin/build'
make[3]: Leaving directory `/opt/ros/groovy/stacks/vrep/vrep_plugin/build'
[ 0%] Built target rospack_genmsg_libexe
make[3]: Entering directory `/opt/ros/groovy/stacks/vrep/vrep_plugin/build'
make[3]: Leaving directory `/opt/ros/groovy/stacks/vrep/vrep_plugin/build'
[ 0%] Built target rosbuild_precompile
make[3]: Entering directory `/opt/ros/groovy/stacks/vrep/vrep_plugin/build'
make[3]: Leaving directory `/opt/ros/groovy/stacks/vrep/vrep_plugin/build'
make[3]: Entering directory `/opt/ros/groovy/stacks/vrep/vrep_plugin/build'
[ 25%] Building CXX object CMakeFiles/v_repExtRos.dir/src/ROS_server.cpp.o
/opt/ros/groovy/stacks/vrep/vrep_plugin/src/ROS_server.cpp: In static member function ‘static bool ROS_server::simRosRMLPositionService(vrep_common::simRosRMLPosition::Request&, vrep_common::simRosRMLPosition::Response&)’:
/opt/ros/groovy/stacks/vrep/vrep_plugin/src/ROS_server.cpp:2628:169: error: too few arguments to function
/opt/ros/groovy/stacks/vrep/vrep_plugin/src/ROS_server.cpp: In static member function ‘static bool ROS_server::simRosRMLVelocityService(vrep_common::simRosRMLVelocity::Request&, vrep_common::simRosRMLVelocity::Response&)’:
/opt/ros/groovy/stacks/vrep/vrep_plugin/src/ROS_server.cpp:2641:163: error: too few arguments to function
make[3]: *** [CMakeFiles/v_repExtRos.dir/src/ROS_server.cpp.o] Error 1
make[3]: Leaving directory `/opt/ros/groovy/stacks/vrep/vrep_plugin/build'
make[2]: *** [CMakeFiles/v_repExtRos.dir/all] Error 2
make[2]: Leaving directory `/opt/ros/groovy/stacks/vrep/vrep_plugin/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/ros/groovy/stacks/vrep/vrep_plugin/build'
make: *** [all] Error 2
I have created the three symbolic links as in the tutorial.
Not sure what is going on, but you can just cut-out everything related to the RML functions. (those are the reflexxes motion libraries, that are also supported from within V-REP (from within V-REP support for those functions is critical, but from outside not that much (because it is better/faster to directly use the original source code in that case))).
I'm having an error in compiling the ros_bubble_rob package
I copied the stack in /opt/ros/groovy/stacks/ and I was having permission issues. I set the right permissions recursively and now 'make' runs but fails with this message:
Can you find the file vrep_common/JointSetStateData.h? It should have been generated while building the plugin.
At the same time it is important that ROS knows where to find the various stacks. If you type:
Ok, I found out what the problem was, it was my mistake. When i tried to do the tutorial I couldn't find the ros packages (i thought i had to download them separately) so i used these ones http://www.coppeliarobotics.com/ros/ but apparently they're some older version. I replaced them with the actual ones in the programming folder and everything is running smoothly.
Thanks for your help and patience anyway!