error compiling vrep ros plugin

Typically: "How do I... ", "How can I... " questions
Post Reply
nickstu
Posts: 15
Joined: 26 Aug 2013, 09:01

error compiling vrep ros plugin

Post by nickstu » 26 Aug 2013, 10:24

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

Code: Select all

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.

coppelia
Site Admin
Posts: 7272
Joined: 14 Dec 2012, 00:25

Re: error compiling vrep ros plugin

Post by coppelia » 26 Aug 2013, 13:00

Hello,

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))).

Cheers

nickstu
Posts: 15
Joined: 26 Aug 2013, 09:01

Re: error compiling vrep ros plugin

Post by nickstu » 26 Aug 2013, 14:33

I commented out the rml and it's working now. Thanks!

nickstu
Posts: 15
Joined: 26 Aug 2013, 09:01

Re: error compiling vrep ros plugin

Post by nickstu » 29 Aug 2013, 14:52

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:

Code: Select all

nickstu@nickstu-asus:/opt/ros/groovy/stacks/rosBubbleRob/ros_bubble_rob$ make
mkdir -p bin
cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=/opt/ros/groovy/share/ros/core/rosbuild/rostoolchain.cmake  ..
[rosbuild] Building package ros_bubble_rob
-- Using CATKIN_DEVEL_PREFIX: /opt/ros/groovy/stacks/rosBubbleRob/ros_bubble_rob/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/rosBubbleRob/ros_bubble_rob/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/rosBubbleRob/ros_bubble_rob/build
cd build && make 
make[1]: Entering directory `/opt/ros/groovy/stacks/rosBubbleRob/ros_bubble_rob/build'
make[2]: Entering directory `/opt/ros/groovy/stacks/rosBubbleRob/ros_bubble_rob/build'
make[3]: Entering directory `/opt/ros/groovy/stacks/rosBubbleRob/ros_bubble_rob/build'
make[3]: Leaving directory `/opt/ros/groovy/stacks/rosBubbleRob/ros_bubble_rob/build'
[  0%] Built target rospack_genmsg_libexe
make[3]: Entering directory `/opt/ros/groovy/stacks/rosBubbleRob/ros_bubble_rob/build'
make[3]: Leaving directory `/opt/ros/groovy/stacks/rosBubbleRob/ros_bubble_rob/build'
[  0%] Built target rosbuild_precompile
make[3]: Entering directory `/opt/ros/groovy/stacks/rosBubbleRob/ros_bubble_rob/build'
make[3]: Leaving directory `/opt/ros/groovy/stacks/rosBubbleRob/ros_bubble_rob/build'
make[3]: Entering directory `/opt/ros/groovy/stacks/rosBubbleRob/ros_bubble_rob/build'
[100%] Building CXX object CMakeFiles/rosBubbleRob.dir/src/rosBubbleRob.cpp.o
/opt/ros/groovy/stacks/rosBubbleRob/ros_bubble_rob/src/rosBubbleRob.cpp:23:43: fatal error: vrep_common/JointSetStateData.h: No such file or directory
compilation terminated.
make[3]: *** [CMakeFiles/rosBubbleRob.dir/src/rosBubbleRob.cpp.o] Error 1
make[3]: Leaving directory `/opt/ros/groovy/stacks/rosBubbleRob/ros_bubble_rob/build'
make[2]: *** [CMakeFiles/rosBubbleRob.dir/all] Error 2
make[2]: Leaving directory `/opt/ros/groovy/stacks/rosBubbleRob/ros_bubble_rob/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/ros/groovy/stacks/rosBubbleRob/ros_bubble_rob/build'
make: *** [all] Error 2

coppelia
Site Admin
Posts: 7272
Joined: 14 Dec 2012, 00:25

Re: error compiling vrep ros plugin

Post by coppelia » 29 Aug 2013, 21:54

Hello,

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:

Code: Select all

roscd vrep_common
roscd vrep_plugin
roscd rosBubbleRob
does it correctly change to the right folder?

Cheers

nickstu
Posts: 15
Joined: 26 Aug 2013, 09:01

Re: error compiling vrep ros plugin

Post by nickstu » 30 Aug 2013, 08:29

there is no JointSetStateData.h anywhere, all i can find is a JointSetStateData.msg

coppelia
Site Admin
Posts: 7272
Joined: 14 Dec 2012, 00:25

Re: error compiling vrep ros plugin

Post by coppelia » 30 Aug 2013, 10:37

Well, that file should have been generated somewhere when you previously made vrep_common:

Code: Select all

$ roscd vrep_common
$ make
Cheers

nickstu
Posts: 15
Joined: 26 Aug 2013, 09:01

Re: error compiling vrep ros plugin

Post by nickstu » 30 Aug 2013, 11:15

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!

coppelia
Site Admin
Posts: 7272
Joined: 14 Dec 2012, 00:25

Re: error compiling vrep ros plugin

Post by coppelia » 30 Aug 2013, 11:42

Oops, we forgot to update those files! (the last versions are however always included in the installation package)

Sorry about that

Post Reply