Consider the following partial application in my new Hydro installation
#include
int main(int argc, char** argv) {
//...
ros::start();
//...
}
when compiled with
g++ -I/opt/ros/hydro/include
I get the error: "undefined reference to 'ros::start()'"
There is no error about a missing include and I even included and got the same error. I can see
ROSCPP_DECL void start();
Does anybody know why I get this compile error?
↧
Do not understand reason for compile error
↧
problems with naoqi after compille workstation compile_error
hi,
when i compiling my workspace, i get this error:
-- nao_msgs: 48 messages, 5 services
-- +++ processing catkin package: 'nao_driver'
-- ==> add_subdirectory(nao_robot/nao_driver)
-- Could not find NAOqi's alcommon
-- Could not find NAOqi's alvision
-- Could not find NAOqi's alproxies
-- Could not find NAOqi's alerror
-- Could not find NAOqi's alvalue
-- Cannot find NAOqi C++ sdk; C++ nodes will NOT be built
In my .bashrc i edit the line:
export $PYTHONPATH="$PYTHONPATH:$HOME/workspace/ros/groovy/src/pynaoqi-sdk-1.14-linux64bits/pynaoqi/"
how i edit the c++ sdk to the .bashrc?
↧
↧
Attempting to compile from source - error making libGLU for libstage
I've been trying to build ROS Hydro from source on my laptop, running Ubuntu 13.10. However, I keep running into a compile error with openGL.
==> Processing plain cmake package: 'stage'
==> Building with env: '/home/alec/ros_catkin_ws/install_isolated/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/alec/ros_catkin_ws/build_isolated/stage/install'
==> make -j8 -l8 in '/home/alec/ros_catkin_ws/build_isolated/stage/install'
make[2]: *** No rule to make target `/usr/lib/x86_64-linux-gnu/libGLU.so', needed by `libstage/libstage.so.4.1.1'. Stop.
make[1]: *** [libstage/CMakeFiles/stage.dir/all] Error 2
make: *** [all] Error 2<== Failed to process package 'stage':
Command '/home/alec/ros_catkin_ws/install_isolated/env.sh make -j8 -l8' returned non-zero exit status 2
Reproduce this error by running:
==> cd /home/alec/ros_catkin_ws/build_isolated/stage && /home/alec/ros_catkin_ws/install_isolated/env.sh make -j8 -l8
Command failed, exiting.
Trying the commands given to reproduce the error gives the following output:
alec@Ares:~/ros_catkin_ws$ cd /home/alec/ros_catkin_ws/build_isolated/stage && sudo /home/alec/ros_catkin_ws/install_isolated/env.sh make -j8 -l8
make: *** No targets specified and no makefile found. Stop.
I've looked up the issue in a more general scope, not focused on ROS, and most of the solutions involved adding a missing symlink (though the most recent posts about a failure to compile with libGLU.so are dealing with Ubuntu 11, so it's not exactly up-to-date), but checking the file locations themselves showed that the symlinks were all there. I also tried purging and reinstalling the openGL drivers, which resulted in the same error.
Thanks!
↧
Arduino Galileo: compile error when using ros
I've installed the Arduino IDE 1.5.3 for a Galileo-Board. Following the instructions on the wiki, I installed rosserial from github, and "catkin_make"ed and "catkin_make install"ed my ws. Everything worked fine.
When I came to run "rosrun rosserial_arduino make_libraries.py .", it stops with an error:
*** Warning, failed to generate libraries for the following packages: *** map_msgsAccording to several posts and viewing the source of make_libraries.py, this should not be too bad, because generating the messages is the last thing done (correct?). Still, I'd be glad if someone knows how to fix this. My actual problem is when I compile any of the ROS examples, I get something like
Arduino: 1.5.3 (Linux), Board: "Intel® Galileo" done xyz.cpp.o: In function `ArduinoHardware::init()': /home/moritz/Arduino/libraries/ros_lib/ArduinoHardware.h:96: undefined reference to `HardwareSerial::begin(unsigned long)' collect2: error: ld returned 1 exit statusTo me this looks like a linker error(?), but that does not help me any further. Compiling simple examples and uploading them to the board works fine. Any help would be appreciated!
↧
Hydro catkin_make error after update related to libflann
After upgrading the Hydro packages I get the following compile error:
make[2]: *** [ 0%] No rule to make target `/usr/lib/libflann_cpp_s.a'
↧
↧
Raspberry Hydro jessie compilation error topic_manager.cpp.o failed
After a while I realised that it was a memory problem. I used the new Raspberry pi Model with more RAM and I set up the sistem to run to 800Mhz.
And it compiles well. Thank you again.
----------
Hello,
I am compiling Ros Hydro for Raspberry under raspbian jessie but I am having the next problem :
----------
==> Processing catkin package: 'roscpp'
==> Building with env: '/home/gusa/ros_catkin_ws/install_isolated/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/gusa/ros_catkin_ws/build_isolated/roscpp'
==> make -j1 -l1 in '/home/gusa/ros_catkin_ws/build_isolated/roscpp'
[ 6%] Built target roscpp_generate_messages_cpp
[ 6%] Built target roscpp_gencpp
[ 8%] Building CXX object CMakeFiles/roscpp.dir/src/libros/topic_manager.cpp.o
In file included from /usr/include/boost/signals.hpp:9:0,
from /home/gusa/ros_catkin_ws/src/ros_comm/roscpp/include/ros/connection.h:41,
from /home/gusa/ros_catkin_ws/src/ros_comm/roscpp/include/ros/connection_manager.h:29,
from /home/gusa/ros_catkin_ws/src/ros_comm/roscpp/src/libros/topic_manager.cpp:30:
/usr/include/boost/signal.hpp:17:4: warning: #warning "Boost.Signals is no longer being maintained and is now deprecated. Please switch to Boost.Signals2. To disable this warning message, define
BOOST_SIGNALS_NO_DEPRECATION_WARNING." [-Wcpp]
# warning "Boost.Signals is no longer being maintained and is now deprecated. Please switch to
Boost.Signals2. To disable this warning message, define BOOST_SIGNALS_NO_DEPRECATION_WARNING."
^
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
CMakeFiles/roscpp.dir/build.make:445: recipe for target 'CMakeFiles/roscpp.dir/src/libros/topic_manager.cpp.o' failed
make[2]: *** [CMakeFiles/roscpp.dir/src/libros/topic_manager.cpp.o] Error 4
CMakeFiles/Makefile2:122: recipe for target 'CMakeFiles/roscpp.dir/all' failed
make[1]: *** [CMakeFiles/roscpp.dir/all] Error 2
Makefile:123: recipe for target 'all' failed
make: *** [all] Error 2
<== Failed to process package 'roscpp':
Command '/home/gusa/ros_catkin_ws/install_isolated/env.sh make -j1 -l1' returned non-zero exit status 2
Reproduce this error by running:
==> cd /home/gusa/ros_catkin_ws/build_isolated/roscpp && /home/gusa/ros_catkin_ws/install_isolated/env.sh make -j1 -l1
----------
Do you need more information?. Please, let me know. Thank you for your help.
↧
Compile error: ‘Init’ is not a member of ‘ros’
Ubuntu 12.04, ROS Hydro
Workspace:
$ echo $ROS_PACKAGE_PATH
/home/kirill/dev/rosbook:/opt/ros/hydro/share:/opt/ros/hydro/stacks
Created ROS pack:
roscd chapter2_tutorials/src/
ls
bin build CMakeLists.txt include lib mainpage.dox Makefile manifest.xml src
Test ROS Package has two source files:
cd src
ls
example1_a.cpp example1_b.cpp
example1_a.cpp:
#include "ros/ros.h"
#include "std_msgs/String.h"
#include
int main(int argc, char **argv)
{
ros::Init(argc, argv, "example1_a");
ros::NodeHandle n;
ros::Publisher chatter_pub = n.advertise("message", 1000);
ros::Rate loop_rate(10);
while (ros::ok())
{
std_msgs:String msg;
std::stringstream ss;
ss << " I am the example_a node ";
msg.data = ss.str();
//
chatter_pub.publish(msg);
ros::spinOnce();
loop_rate.sleep();
}
return 0;
}
example1_b.cpp:
#include "ros/ros.h"
#include "std_msgs/String.h"
void chatterCallback(const std_msgs::String::ConstPtr& msg)
{
ROS_INFO("I heard: [%s]", msg->data.c_str());
}
int main (int argc, char **argv)
{
ros::Init(argc, argv, "example1_b");
ros::NodeHandle n;
ros::Subscriber sub = n.subcribe("message", 1000, chatterCallback);
ros::spin();
return 0;
}
CMakeLists.txt:
rosed chapter2_tutorials CMakeLists.txt
cmake_minimum_required(VERSION 2.4.6)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
# Set the build type. Options are:
# Coverage : w/ debug symbols, w/o optimization, w/ code-coverage
# Debug : w/ debug symbols, w/o optimization
# Release : w/o debug symbols, w/ optimization
# RelWithDebInfo : w/ debug symbols, w/ optimization
# MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries
#set(ROS_BUILD_TYPE RelWithDebInfo)
rosbuild_init()
#set the default path for built executables to the "bin" directory
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
#set the default path for built libraries to the "lib" directory
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
#uncomment if you have defined messages
#rosbuild_genmsg()
#uncomment if you have defined services
#rosbuild_gensrv()
#common commands for building c++ executables and libraries
#rosbuild_add_library(${PROJECT_NAME} src/example.cpp)
#target_link_libraries(${PROJECT_NAME} another_library)
#rosbuild_add_boost_directories()
#rosbuild_link_boost(${PROJECT_NAME} thread)
#rosbuild_add_executable(example examples/example.cpp)
#target_link_libraries(example ${PROJECT_NAME})
rosbuild_add_executable(example1_a src/example1_a.cpp)
rosbuild_add_executable(example1_b src/example1_b.cpp)
Making package:
kirill@kirill-Aspire-E1-571G:~/dev/rosbook/chapter2_tutorials$ rosmake chapter2_tutorials
[ rosmake ] rosmake starting...
[ rosmake ] Packages requested are: ['chapter2_tutorials']
[ rosmake ] Logging to directory /home/kirill/.ros/rosmake/rosmake_output-20140607-195627
[ rosmake ] Expanded args ['chapter2_tutorials'] to:
['chapter2_tutorials']
[rosmake-0] Starting >>> catkin [ make ]
[rosmake-0] Finished <<< catkin ROS_NOBUILD in package catkin
No Makefile in package catkin
[rosmake-0] Starting >>> genmsg [ make ]
[rosmake-0] Finished <<< genmsg ROS_NOBUILD in package genmsg
No Makefile in package genmsg
[rosmake-0] Starting >>> genlisp [ make ]
[rosmake-1] Starting >>> genpy [ make ]
[rosmake-0] Finished <<< genlisp ROS_NOBUILD in package genlisp
No Makefile in package genlisp
[rosmake-2] Starting >>> gencpp [ make ]
[rosmake-0] Starting >>> console_bridge [ make ]
[rosmake-3] Starting >>> rospack [ make ]
[rosmake-3] Finished <<< rospack ROS_NOBUILD in package rospack
No Makefile in package rospack
[rosmake-1] Finished <<< genpy ROS_NOBUILD in package genpy
No Makefile in package genpy
[rosmake-2] Finished <<< gencpp ROS_NOBUILD in package gencpp
No Makefile in package gencpp
[rosmake-3] Starting >>> roslib [ make ]
[rosmake-2] Starting >>> message_generation [ make ]
[rosmake-1] Starting >>> roslang [ make ]
[rosmake-0] Finished <<< console_bridge ROS_NOBUILD in package console_bridge
No Makefile in package console_bridge
[rosmake-0] Starting >>> cpp_common [ make ]
[rosmake-2] Finished <<< message_generation ROS_NOBUILD in package message_generation
No Makefile in package message_generation
[rosmake-2] Starting >>> rosgraph [ make ]
[rosmake-1] Finished <<< roslang ROS_NOBUILD in package roslang cpp_common: 0.0 sec ] [ rosgraph: 0.0 sec ] [ 4 Active 8/25 Complete ]
No Makefile in package roslang
[rosmake-0] Finished <<< cpp_common ROS_NOBUILD in package cpp_common
No Makefile in package cpp_common
[rosmake-0] Starting >>> rostime [ make ]
[rosmake-1] Starting >>> xmlrpcpp [ make ]
[rosmake-3] Finished <<< roslib ROS_NOBUILD in package roslib
No Makefile in package roslib
[rosmake-2] Finished <<< rosgraph ROS_NOBUILD in package rosgraph
No Makefile in package rosgraph
[rosmake-3] Starting >>> rosunit [ make ]
[rosmake-1] Finished <<< xmlrpcpp ROS_NOBUILD in package xmlrpcpp
No Makefile in package xmlrpcpp
[rosmake-3] Finished <<< rosunit ROS_NOBUILD in package rosunit
No Makefile in package rosunit
[rosmake-0] Finished <<< rostime ROS_NOBUILD in package rostime
No Makefile in package rostime
[rosmake-0] Starting >>> roscpp_traits [ make ]
[rosmake-0] Finished <<< roscpp_traits ROS_NOBUILD in package roscpp_traits
No Makefile in package roscpp_traits
[rosmake-0] Starting >>> roscpp_serialization [ make ]
[rosmake-0] Finished <<< roscpp_serialization ROS_NOBUILD in package roscpp_serialization
No Makefile in package roscpp_serialization
[rosmake-0] Starting >>> message_runtime [ make ]
[rosmake-0] Finished <<< message_runtime ROS_NOBUILD in package message_runtime
No Makefile in package message_runtime
[rosmake-0] Starting >>> std_msgs [ make ]
[rosmake-3] Starting >>> rosbuild [ make ]
[rosmake-0] Finished <<< std_msgs ROS_NOBUILD in package std_msgs
No Makefile in package std_msgs
[rosmake-0] Starting >>> rosgraph_msgs [ make ]
[rosmake-3] Finished <<< rosbuild ROS_NOBUILD in package rosbuild
No Makefile in package rosbuild
[rosmake-3] Starting >>> rosconsole [ make ]
[rosmake-0] Finished <<< rosgraph_msgs ROS_NOBUILD in package rosgraph_msgs
No Makefile in package rosgraph_msgs
[rosmake-3] Finished <<< rosconsole ROS_NOBUILD in package rosconsole
No Makefile in package rosconsole
[rosmake-3] Starting >>> roscpp [ make ]
[rosmake-3] Finished <<< roscpp ROS_NOBUILD in package roscpp
No Makefile in package roscpp
[rosmake-3] Starting >>> rospy [ make ]
[rosmake-3] Finished <<< rospy ROS_NOBUILD in package rospy
No Makefile in package rospy
[rosmake-3] Starting >>> chapter2_tutorials [ make ]
[ rosmake ] Last 40 linesapter2_tutorials: 3.8 sec ] [ 1 Active 24/25 Complete ]
{-------------------------------------------------------------------------------
make[3]: Entering directory `/home/kirill/dev/rosbook/chapter2_tutorials/build'
make[3]: Leaving directory `/home/kirill/dev/rosbook/chapter2_tutorials/build'
[ 0%] Built target rosbuild_precompile
make[3]: Entering directory `/home/kirill/dev/rosbook/chapter2_tutorials/build'
make[3]: Entering directory `/home/kirill/dev/rosbook/chapter2_tutorials/build'
make[3]: Leaving directory `/home/kirill/dev/rosbook/chapter2_tutorials/build'
make[3]: Leaving directory `/home/kirill/dev/rosbook/chapter2_tutorials/build'
make[3]: Entering directory `/home/kirill/dev/rosbook/chapter2_tutorials/build'
make[3]: Entering directory `/home/kirill/dev/rosbook/chapter2_tutorials/build'
[ 50%] [100%] Building CXX object CMakeFiles/example1_b.dir/src/example1_b.cpp.o
Building CXX object CMakeFiles/example1_a.dir/src/example1_a.cpp.o
/home/kirill/dev/rosbook/chapter2_tutorials/src/example1_b.cpp: In function ‘int main(int, char**)’:
/home/kirill/dev/rosbook/chapter2_tutorials/src/example1_b.cpp:12:3: error: ‘Init’ is not a member of ‘ros’
/home/kirill/dev/rosbook/chapter2_tutorials/src/example1_b.cpp:14:27: error: ‘class ros::NodeHandle’ has no member named ‘subcribe’
/home/kirill/dev/rosbook/chapter2_tutorials/src/example1_b.cpp:14:19: warning: unused variable ‘sub’ [-Wunused- variable]
/home/kirill/dev/rosbook/chapter2_tutorials/src/example1_a.cpp: In function ‘int main(int, char**)’:
/home/kirill/dev/rosbook/chapter2_tutorials/src/example1_a.cpp:7:3: error: ‘Init’ is not a member of ‘ros’
/home/kirill/dev/rosbook/chapter2_tutorials/src/example1_a.cpp:9:44: error: ‘std_’ was not declared in this scope
/home/kirill/dev/rosbook/chapter2_tutorials/src/example1_a.cpp:9:34: error: parse error in template argument list
/home/kirill/dev/rosbook/chapter2_tutorials/src/example1_a.cpp:10:30: error: no matching function for call to
‘ros::NodeHandle::advertise(const char [8], int)’
/home/kirill/dev/rosbook/chapter2_tutorials/src/example1_a.cpp:10:30: note: candidates are:
/opt/ros/hydro/include/ros/node_handle.h:236:15: note: template ros::Publisher ros::NodeHandle::advertise(const string&, uint32_t, bool)
/opt/ros/hydro/include/ros/node_handle.h:300:13: note: template ros::Publisher ros::NodeHandle::advertise(const string&, uint32_t, const SubscriberStatusCallback&, const SubscriberStatusCallback&, const VoidConstPtr&, bool)
/home/kirill/dev/rosbook/chapter2_tutorials/src/example1_a.cpp:14:14: error: ‘String’ was not declared in this scope
/home/kirill/dev/rosbook/chapter2_tutorials/src/example1_a.cpp:14:14: note: suggested alternative:
/opt/ros/hydro/include/std_msgs/String.h:80:52: note: ‘std_msgs::String’
/home/kirill/dev/rosbook/chapter2_tutorials/src/example1_a.cpp:14:21: error: expected ‘;’ before ‘msg’
/home/kirill/dev/rosbook/chapter2_tutorials/src/example1_a.cpp:17:5: error: ‘msg’ was not declared in this scope
/home/kirill/dev/rosbook/chapter2_tutorials/src/example1_a.cpp:14:5: warning: label ‘std_msgs’ defined but not used [- Wunused-label]
make[3]: *** [CMakeFiles/example1_b.dir/src/example1_b.cpp.o] Error 1
make[3]: Leaving directory `/home/kirill/dev/rosbook/chapter2_tutorials/build'
make[2]: *** [CMakeFiles/example1_b.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: *** [CMakeFiles/example1_a.dir/src/example1_a.cpp.o] Error 1
make[3]: Leaving directory `/home/kirill/dev/rosbook/chapter2_tutorials/build'
make[2]: *** [CMakeFiles/example1_a.dir/all] Error 2
make[2]: Leaving directory `/home/kirill/dev/rosbook/chapter2_tutorials/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/kirill/dev/rosbook/chapter2_tutorials/build'
-------------------------------------------------------------------------------}
[ rosmake ] Output from build of package chapter2_tutorials written to:
[ rosmake ] /home/kirill/.ros/rosmake/rosmake_output-20140607-195627/chapter2_tutorials/build_output.log
[rosmake-3] Finished <<< chapter2_tutorials [FAIL] [ 3.77 seconds ]
[ rosmake ] Halting due to failure in package chapter2_tutorials.
[ rosmake ] Waiting for other threads to complete.
[ rosmake ] Results:
[ rosmake ] Built 25 packages with 1 failures.
[ rosmake ] Summary output to directory
[ rosmake ] /home/kirill/.ros/rosmake/rosmake_output-20140607-195627
kirill@kirill-Aspire-E1-571G:~/dev/rosbook/chapter2_tutorials$
I can't build tutorial node because of error:
error: ‘Init’ is not a member of ‘ros’
Could anyone give a clue how to solve this issue?
Regards,
Kirill
↧
Problem with Header File Not Being Sensed in Compilation
Hello,
I am having issues compiling a simple package that I built. In the end, after compilation I am getting an error:
make[2]: *** [robbie_tf/CMakeFiles/robbie_tf_node.dir/src/robbie_tf_node.cpp.o] Error 1
make[1]: *** [robbie_tf/CMakeFiles/robbie_tf_node.dir/all] Error 2
But, earlier in the compilation, I am getting an error:
/home/jmcunnin/catkin_ws/src/robbie_tf/src/robbie_tf_node.cpp:28:38: fatal error: robbie_tf/robbie_tf_node.h: No such file or directory compilation terminated.
The package that I am compiling is named robbie_tf and the header file that is not being used is the header for the node file (kind of an issue :P). Any help would be appreciated.
Also, this is my CMake file:
cmake_minimum_required(VERSION 2.8.3)
project(robbie_tf)
find_package(catkin REQUIRED COMPONENTS
people_msgs
roscpp
rospy
std_msgs
tf
)
find_package(Boost REQUIRED COMPONENTS thread)
catkin_package(
INCLUDE_DIRS include
LIBRARIES robbie_tf
)
include_directories(
${catkin_INCLUDE_DIRS}
)
add_library(robbie_tf_node
src/robbie_tf_node.cpp
)
add_executable(robbie_tf src/robbie_tf_node.cpp)
add_dependencies(robbie_tf_node robbie_tf_generate_messages_cpp)
target_link_libraries(robbie_tf
robbie_tf_node ${catkin_LIBRARIES} ${Boost_LIBRARIES}
)
I would assume that the issue lies in the CMakeList but I'm not sure where my declarations are going wrong.
Thanks, for the help
↧
TimeSynchronizer [compilation error ]
Hi all,
i am getting compilation error while using `TimeSynchronizer`.
i saw [similar question](http://answers.ros.org/question/83316/trying-to-use-timesynchronizergetting-compile-error/) , but it didnt solve.
thank you.
----------
error: ‘TimeSynchronizer’ does not name a type
In constructor ‘Detectchange::Detectchange()’:
error: ‘timesync’ was not declared in this scope
error: expected type-specifier before ‘TimeSynchronizer’
error: expected ‘;’ before ‘TimeSynchronizer’
----------
here is my code snippet.
----------
class myclass
{
public:
//some stuff
private:
message_filters::Subscriber* laser_scan_sub;
message_filters::Subscriber* pose_sub;
TimeSynchronizer *timesync;
}
----------
myclass::myclass()
{
laser_scan_sub = new message_filters::Subscriber(nh_, "/ms_front_laser", 1);
pose_sub = new message_filters::Subscriber(nh_, "/pose", 1);
timesync = new TimeSynchronizer (laser_scan_sub, pose_sub, 50);
timesync->registerCallback(boost::bind(&myclass::laserReceived, this, _1, _2));
}
----------
void myclass::laserReceived(const sensor_msgs::LaserScanConstPtr& laser_scan, const geometry_msgs::PoseStampedConstPtr& estimate_pose)
{
// some stuff
}
----------
int main(int argc, char** argv)
{
ros::init(argc, argv, "myclass");
ros::NodeHandle nh;
myclass mc;
ros::spin();
return(0);
}
↧
↧
turtlebot playgronud does not launch correctly
Hello.
I want to try "Make a map and navigate with it" in Tutorials, but I compiled,
$ source /opt/ros/hydro/setup.bash
$ roslaunch turtlebot_gazebo turtlebot_playground.launch
gazebo displayed only a bookshelf, a column and a turtlebot.
Errors are
Error [ModelDatabase.cc:408] Unable to download model[model://dumpster/meshes/dumpster.dae]
Error [SystemPaths.cc:371] File or path does not exist[""]
Error [Visual.cc:2072] No mesh specified
...etc
What do I have to do?
↧
No rule to make target for gTest
While using ```$ catkin_make run_tests_test_pkg```, the following error is generated by cmake:
``` *** No rule to make target '/usr/lib/libgtest.so', needed by '/home/username/catkin_ws/devel/lib/test_pkg/sampleTest'. Stop.```
I uninstalled gtest (and ROS) and reinstalled it again, but the error persists.
The tests are successfully built on another system (ensured via git) with same OS (ubuntu 14.04)
What are the possible reasons for this error, and how can this be removed?
**EDIT**: CMakeLists.txt (unchanged, except for minor filename modifications:
cmake_minimum_required(VERSION 2.8.3)
project(my_library)
find_package(catkin REQUIRED COMPONENTS my_msgs geometry_msgs roscpp roslib sensor_msgs std_msgs actionlib actionlib_msgs)
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS my_msgs geometry_msgs roscpp roslib sensor_msgs std_msgs actionlib actionlib_msgs
)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -fprofile-arcs -ftest-coverage")
include_directories(
include/
${catkin_INCLUDE_DIRS}
)
set(math_HDRS
include/my_library/math/abc.h
include/my_library/math/xyz.h
)
set(math_SRCS
src/math/xyz.cpp
)
set(math_test_HDRS
${math_HDRS}
include/my_library/math/abc_test.h
include/my_library/math/xyz_test.h
)
set(math_test_SRCS
${math_SRCS}
src/math/main_test.cpp
)
add_library(my_library ${actionlib_HDRS} ${actionlib_SRCS} ${math_HDRS} ${math_SRCS}) # ${param_HDRS} ${param_SRCS})
add_dependencies(my_library ${catkin_EXPORTED_TARGETS})
target_link_libraries(my_library ${catkin_LIBRARIES} ${Boost_LIBRARIES} yaml-cpp)
set(CMAKE_C++_CREATE_SHARED_LIBRARY)
SET_TARGET_PROPERTIES(my_library PROPERTIES LINKER_LANGUAGE CXX)
catkin_add_gtest(math_test ${math_test_SRCS} ${math_test_HDRS})
**EDIT**: clean cmake output (removed mangled c++ function names, and repetition of errors):
Base path: /home/kunaltyagi/catkin_ws
Source space: /home/kunaltyagi/catkin_ws/src
Build space: /home/kunaltyagi/catkin_ws/build
Devel space: /home/kunaltyagi/catkin_ws/devel
Install space: /home/kunaltyagi/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/kunaltyagi/catkin_ws/build"
####
####
#### Running command: "make run_tests_my_library -j8 -l8" in "/home/kunaltyagi/catkin_ws/build"
####
Scanning dependencies of target math_test
[100%] Building CXX object my_library/CMakeFiles/math_test.dir/src/math/main_test.cpp.o
Linking CXX executable /home/kunaltyagi/catkin_ws/devel/lib/my_library/math_test
CMakeFiles/math_test.dir/src/math/main_test.cpp.o:(txt+0x07): In file /home/kunaltyagi/catkin_ws/my_library/src/math/main_test.cpp
*** No rule to make target '/usr/lib/libgtest.so', needed by '/home/kunaltyagi/catkin_ws/devel/lib/my_library/math_test'. Stop.
CMakeFiles/math_test.dir/src/math/main_test.cpp.o:(txt+0xc1): In function 'testing::internal::FormatForComparisonFailureMessage(char const*, std::string const&)':
/usr/include/gtest/gtest.h:1328: error: undefined reference to 'testing::internal::EqFailure(char const, char const, testing::internal::String const&, testing::internal::String const&, bool)'
**** repeat this multiple times for each usage of ASSERT_EQ and EXPECT_EQ****
/usr/include/gtest/gtest.h:1328: error: undefined reference to 'testing::internal::EqFailure(char const, char const, testing::internal::String const&, testing::internal::String const&, bool)'
collect2: error: ld returned 1 exit status
make[3]: *** [my_library/CMakeFiles/math_test.dir/src/math/main_test.cpp.o] Error 1
make[2]: *** [my_library/CMakeFiles/math_test.dir/all] Error 2
make[1]: *** [my_library/CMakeFiles/run_tests_my_library.dir/rule] Error 2
make: *** [run_tests_my_library] Error 2
Invoking "make" failed
↧
rosbag bag_player issue
Hello everyone,
i am trying to play a bagfile in c++ code using the "bag_player" class, but cannot find a way to
satisfy the second argument of the "register_callback" method.
The code in question currently looks like this:
void LocalizeSimulation::loadBagFile(std::string filename) {
rosbag::BagPlayer bag_player(filename);
bagplayer_ = &bag_player;
bag_.open(filename, rosbag::bagmode::Read);
rosbag::View view(bag_);
bag_player.set_start(view.getBeginTime());
bag_player.set_end(view.getEndTime());
bag_player.start_play();
const std::string scan_topic = "/scan";
bag_player.register_callback(scan_topic, &scanCallback);}
and my scanCallback method like this:
void LocalizeSimulation::scanCallback(sensor_msgs::LaserScan::ConstPtr& scan) {}
But compiling the file yields the error "error: no matching function for call to ‘rosbag::BagPlayer::register_callback(const string&, )’
bag_player.register_callback(scan_topic, &scanCallback);"
while indicating:
note: candidate is: template void rosbag::BagPlayer::register_callback(const string&, typename rosbag::BagCallbackT::Callback)
Attempts to change the method signature to a template have failed and so have numerous attempts at changing the "&scanCallback" argument, e.g. using boost::bind. Unfortunately, there don't appear to be many example uses of the BagPlayer class so I require help from you guys.
Big Thanks in advance
freidankm
↧
installed build-essential but still get CXX compiler not found error
I am having the same problem I've seen from multiple posts from 2012 about CXX compiler not being found. I did run `sudo apt-get install build-essential checkinstall` and still get the following when I run `cmake`:
-- The CXX compiler identification is unknown
-- Check for working CXX compiler: /usr/local/bin/cl
CMake Error: your CXX compiler: "/usr/local/bin/cl" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
Where do I look for what is causing it to try to find "cl"?
↧
↧
Linking problems on archlinux
Hi folks, I've run into plenty of problems with building some things on arch with ros-jade...
I was able to compile most of the things, but I stuck on serveral errors...
at first, I tried to compile packages for raspi-cam and got stuck on camera_calibration_parser:
(at first I tried script from AUR to install it, but then I made new catkin workspace, git cloned the package source and it still fails on same thing)
https://bpaste.net/show/1afd33358e71
also, while ago I tried to compil jade-rviz, but too failed on linking phase
https://bpaste.net/show/3ef53c30d3d2 ... (this time only AUR recipe) ... I tried to get help on author repo, but he said he can compile it just OK with same libraries as me on OS X....
I am using http://wiki.ros.org/jade/Installation/Arch#User_configuration macro to setup ros enviroment when I work with it, and many packages I was able to get just right
what can cause this?
↧
How to compile a rosjava package offline?
Hello,
I tried to compile a rosjava package without internet connection and it complained about not being able to reach "https://github.com/rosjava/rosjava_bootstrap/raw/indigo/buildscript.gradle"
FAILURE: Build failed with an exception.
* What went wrong:
> Could not read script 'https://github.com/rosjava/rosjava_bootstrap/raw/indigo/buildscript.gradle'.
> github.com
After that, I tried again with internec connection and it compiled. I would like to be able to code without internet connection. Is it possible? How?
Thanks
↧
ROS-I training_unit demo_manipulation fails to build
Hi,
This [exercise](http://aeswiki.datasys.swri.edu/rositraining/indigo/Exercises/demo/part2) is failing to build on my system due to the following error:
/home/work/ros_industrial_training/training/work/demo_manipulation/src/robot_io/src/nodes/simulated_grasp_action_server.cpp:35:70: fatal error: object_manipulation_msgs/GraspHandPostureExecutionAction.h: No such file or directory #include
I was going to build the [object_manipulation_msgs](https://github.com/ros-interactive-manipulation/object_manipulation.git) from sources but it is a rosbuild project not catkin. Is there a way to easily convert this to catkin? There is a branch on the github with a couple of folders 'catkinized' but I don't think it's enough as catkin doesn't seem to detect anything.
Thanks for your help.
{UPDATE #1]
Adding the dependency didn't work but copying the `object_manipulation_msgs` src folder from the supplements directory did the trick. Not sure if that is how it is supposed to be done or if catkin should be automatically detecting the folder in the supplements directory.
[UPDATE #2]
There are a host of other errors as well when launching the roslaunch file after building:
1) The files `ur5.transmission.xacro` and `ur5.gazebo.xacro` are missing from the `ur_description` folder and need to be copied over from the supplements folder.
2) The `ur5.urdf.xacro` file has errors in the `` and `` filename tags that also need to be corrected.
[UPDATE #3]
Opened 2 separate [issues](https://github.com/ros-industrial/industrial_training/issues)
↧
Issue while compiling image_pipeline
Hey, I'm trying to compile on a rpi 3 under jessie image_pipeline.
I think I got all the dependency right, but when I got an error when I catkin_make :
pi@raspberrypi:~/image_pipeline $ catkin_make
Base path: /home/pi/image_pipeline
Source space: /home/pi/image_pipeline/src
Build space: /home/pi/image_pipeline/build
Devel space: /home/pi/image_pipeline/devel
Install space: /home/pi/image_pipeline/install
####
#### Running command: "make cmake_check_build_system" in "/home/pi/image_pipeline/build"
####
####
#### Running command: "make -j4 -l4" in "/home/pi/image_pipeline/build"
####
[ 7%] Built target image_proc_gencfg
[ 10%] [ 13%] [ 15%] Built target disparity_view
Built target extract_images
Built target image_saver
[ 18%] Built target image_view_gencfg
[ 21%] Building CXX object image_pipeline/image_view/CMakeFiles/video_recorder.dir/src/nodes/video_recorder.cpp.o
[ 23%] Built target stereo_image_proc_gencfg
[ 26%] [ 28%] Built target stereo_view
Building CXX object image_pipeline/image_view/CMakeFiles/image_view.dir/src/nodelets/image_nodelet.cpp.o
[ 31%] Built target image_rotate_gencfg
[ 34%] Built target image_rotate_exe
Scanning dependencies of target image_proc
[ 36%] Building CXX object image_pipeline/depth_image_proc/CMakeFiles/depth_image_proc.dir/src/nodelets/crop_foremost.cpp.o
[ 39%] Building CXX object image_pipeline/image_proc/CMakeFiles/image_proc.dir/src/libimage_proc/processor.cpp.o
[ 42%] Building CXX object image_pipeline/image_proc/CMakeFiles/image_proc.dir/src/nodelets/debayer.cpp.o
/home/pi/image_pipeline/src/image_pipeline/image_view/src/nodes/video_recorder.cpp: In function ‘void callback(const ImageConstPtr&, const CameraInfoConstPtr&)’:
/home/pi/image_pipeline/src/image_pipeline/image_view/src/nodes/video_recorder.cpp:75:153: error: could not convert ‘use_dynamic_range’ from ‘bool’ to ‘cv_bridge::CvtColorForDisplayOptions’
const cv::Mat image = cv_bridge::cvtColorForDisplay(cv_bridge::toCvShare(image_msg), encoding, use_dynamic_range, min_depth_range, max_depth_range)->image;
^
image_pipeline/image_view/CMakeFiles/video_recorder.dir/build.make:54: recipe for target 'image_pipeline/image_view/CMakeFiles/video_recorder.dir/src/nodes/video_recorder.cpp.o' failed
make[2]: *** [image_pipeline/image_view/CMakeFiles/video_recorder.dir/src/nodes/video_recorder.cpp.o] Error 1
CMakeFiles/Makefile2:2280: recipe for target 'image_pipeline/image_view/CMakeFiles/video_recorder.dir/all' failed
make[1]: *** [image_pipeline/image_view/CMakeFiles/video_recorder.dir/all] Error 2
make[1]: *** Attente des tâches non terminées....
[ 44%] Building CXX object image_pipeline/image_proc/CMakeFiles/image_proc.dir/src/nodelets/rectify.cpp.o
/home/pi/image_pipeline/src/image_pipeline/image_view/src/nodelets/image_nodelet.cpp: In member function ‘void image_view::ImageNodelet::imageCb(const ImageConstPtr&)’:
/home/pi/image_pipeline/src/image_pipeline/image_view/src/nodelets/image_nodelet.cpp:165:87: error: could not convert ‘do_dynamic_scaling’ from ‘bool’ to ‘cv_bridge::CvtColorForDisplayOptions’
last_image_ = cvtColorForDisplay(cv_bridge::toCvShare(msg), "", do_dynamic_scaling)->image;
^
image_pipeline/image_view/CMakeFiles/image_view.dir/build.make:54: recipe for target 'image_pipeline/image_view/CMakeFiles/image_view.dir/src/nodelets/image_nodelet.cpp.o' failed
make[2]: *** [image_pipeline/image_view/CMakeFiles/image_view.dir/src/nodelets/image_nodelet.cpp.o] Error 1
CMakeFiles/Makefile2:2047: recipe for target 'image_pipeline/image_view/CMakeFiles/image_view.dir/all' failed
make[1]: *** [image_pipeline/image_view/CMakeFiles/image_view.dir/all] Error 2
[ 47%] Building CXX object image_pipeline/depth_image_proc/CMakeFiles/depth_image_proc.dir/src/nodelets/disparity.cpp.o
[ 50%] Building CXX object image_pipeline/image_proc/CMakeFiles/image_proc.dir/src/nodelets/crop_decimate.cpp.o
[ 52%] Building CXX object image_pipeline/depth_image_proc/CMakeFiles/depth_image_proc.dir/src/nodelets/point_cloud_xyzrgb.cpp.o
[ 55%] Building CXX object image_pipeline/depth_image_proc/CMakeFiles/depth_image_proc.dir/src/nodelets/point_cloud_xyzi.cpp.o
[ 57%] Building CXX object image_pipeline/depth_image_proc/CMakeFiles/depth_image_proc.dir/src/nodelets/point_cloud_xyz.cpp.o
[ 60%] Building CXX object image_pipeline/image_proc/CMakeFiles/image_proc.dir/src/libimage_proc/advertisement_checker.cpp.o
[ 63%] Building CXX object image_pipeline/image_proc/CMakeFiles/image_proc.dir/src/nodelets/edge_aware.cpp.o
[ 65%] Building CXX object image_pipeline/image_proc/CMakeFiles/image_proc.dir/src/nodelets/crop_non_zero.cpp.o
[ 68%] Building CXX object image_pipeline/depth_image_proc/CMakeFiles/depth_image_proc.dir/src/nodelets/point_cloud_xyzi_radial.cpp.o
Linking CXX shared library /home/pi/image_pipeline/devel/lib/libimage_proc.so
[ 68%] Built target image_proc
[ 73%] [ 73%] Building CXX object image_pipeline/depth_image_proc/CMakeFiles/depth_image_proc.dir/src/nodelets/register.cpp.o
Building CXX object image_pipeline/depth_image_proc/CMakeFiles/depth_image_proc.dir/src/nodelets/point_cloud_xyz_radial.cpp.o
^[[A^[[A^[[A^[[BLinking CXX shared library /home/pi/image_pipeline/devel/lib/libdepth_image_proc.so
[ 76%] Built target depth_image_proc
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
It looks like an error with v_bridge::cvtColorForDisplay third parameter, but I'm not sure how I should solve that.
Thank you in advance for your help !
↧
↧
Error while compiling cpp file on ros
My code is composed by three files which are class file, function file and main file. lbl_object is a class object and print_g is function in the class. When I use the function "lbl_object.print_g()" in the main file, then error occur as shown below:
/usr/bin/ld: /home/gupta/catkin_ws_2/install_isolated/lib/uwsim_bullet/libBulletDynamics.a(btDiscreteDynamicsWorld.o):
undefined reference to symbol 'btSimulationIslandManager::btSimulationIslandManager()'
/usr/bin/ld: note: 'btSimulationIslandManager::btSimulationIslandManager()' is defined in DSO /home/gupta/catkin_ws_2
/install_isolated/lib/libosgbInteraction.so so try adding it to the linker command line
/home/gupta/catkin_ws_2/install_isolated/lib/libosgbInteraction.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [/home/gupta/catkin_ws_2/devel_isolated/uwsim/lib/uwsim/mainLocal] Error 1
make[1]: *** [CMakeFiles/mainLocal.dir/all] Error 2
make: *** [all] Error 2
<== Failed to process package 'uwsim':
Command '/home/gupta/catkin_ws_2/install_isolated/env.sh make -j8 -l8' returned non-zero exit status 2
However, when I remove "lbl_object.print_g()" in the main file, then there is no error.
Besides, when I use the data member of the class by utilizing "lbl_object.g=10;" in the main file, there is no error.
↧
Compile error with ROS. Possible bug?
Hello! I have been trying to compile my project with ROS Indigo and C++ (Ubuntu 14.04) and getting an error which I do not understand. I define a class named Point2dc and in the code, it is used multiple times to create vectors etc. The (4000 line) error I get can be found below under the link:
http://pastebin.com/LWMd7j8y
The class is defined as follows:
#ifndef POINT2DC_H
#define POINT2DC_H
#include "ros/ros.h"
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
using namespace ros;
class Point2dc
{
public:
Point2dc(float pos_x, float pos_y);
Point2dc();
float pos_x;
float pos_y;
float get_polar_angle();
float get_polar_r();
float distance_to_point(Point2dc p);
};
#endif
The error occurs, when including "ros/ros.h" in another custom class called Vehicle.
Thanks in advance.
Edit:
This is just a small excerpt of the error I get. For the full error, please check the link above. Excuse my poor formatting :)
from /usr/include/boost/math/tools/config.hpp:16,
from /usr/include/boost/math/special_functions/round.hpp:13,
from /opt/ros/indigo/include/ros/time.h:58,
from /opt/ros/indigo/include/ros/ros.h:38,
from /home/mertes13/catkin_ws/src/irt_visualization/include/Vehicle.h:4,
from /home/mertes13/catkin_ws/src/irt_visualization/src/Vehicle.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h:166:17: note: ‘Point2dc’ is not derived from ‘conststd::_List_iterator<_Tp>’
if (*__first == __val)
^
In file included from /usr/include/c++/4.8/set:62:0,
from /opt/ros/indigo/include/ros/forwards.h:34,
from /opt/ros/indigo/include/ros/common.h:37,
from /opt/ros/indigo/include/ros/ros.h:43,
from /home/mertes13/catkin_ws/src/irt_visualization/include/Vehicle.h:4,
from /home/mertes13/catkin_ws/src/irt_visualization/src/Vehicle.cpp:1:
/usr/include/c++/4.8/bits/stl_multiset.h:739:5: note: template bool std::operator==(const std::multiset<_Key, _Compare, _Alloc>&, const std::multiset<_Key, _Compare, _Alloc>&)
operator==(const multiset<_Key, _Compare, _Alloc>& __x,
^
/usr/include/c++/4.8/bits/stl_multiset.h:739:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/4.8/algorithm:62:0,
from /usr/include/boost/math/tools/config.hpp:16,
from /usr/include/boost/math/special_functions/round.hpp:13,
from /opt/ros/indigo/include/ros/time.h:58,
from /opt/ros/indigo/include/ros/ros.h:38,
from /home/mertes13/catkin_ws/src/irt_visualization/include/Vehicle.h:4,
from /home/mertes13/catkin_ws/src/irt_visualization/src/Vehicle.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h:166:17: note: ‘Point2dc’ is not derived from ‘const std::multiset<_Key, _Compare, _Alloc>’
if (*__first == __val)
^
In file included from /usr/include/c++/4.8/set:61:0,
from /opt/ros/indigo/include/ros/forwards.h:34,
from /opt/ros/indigo/include/ros/common.h:37,
from /opt/ros/indigo/include/ros/ros.h:43,
from /home/mertes13/catkin_ws/src/irt_visualization/include/Vehicle.h:4,
from /home/mertes13/catkin_ws/src/irt_visualization/src/Vehicle.cpp:1:
/usr/include/c++/4.8/bits/stl_set.h:754:5: note: template bool std::operator==(const std::set<_Key, _Compare, _Alloc>&, const std::set<_Key, _Compare, _Alloc>&)
operator==(const set<_Key, _Compare, _Alloc>& __x,
^
/usr/include/c++/4.8/bits/stl_set.h:754:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/4.8/algorithm:62:0,
from /usr/include/boost/math/tools/config.hpp:16,
from /usr/include/boost/math/special_functions/round.hpp:13,
from /opt/ros/indigo/include/ros/time.h:58,
from /opt/ros/indigo/include/ros/ros.h:38,
from /home/mertes13/catkin_ws/src/irt_visualization/include/Vehicle.h:4,
from /home/mertes13/catkin_ws/src/irt_visualization/src/Vehicle.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h:166:17: note: ‘Point2dc’ is not derived from ‘const std::set<_Key, _Compare, _Alloc>’
if (*__first == __val)
^
In file included from /usr/include/c++/4.8/map:62:0,
from /opt/ros/indigo/include/ros/console.h:42,
from /opt/ros/indigo/include/ros/ros.h:40,
from /home/mertes13/catkin_ws/src/irt_visualization/include/Vehicle.h:4,
from /home/mertes13/catkin_ws/src/irt_visualization/src/Vehicle.cpp:1:
/usr/include/c++/4.8/bits/stl_multimap.h:864:5: note: template bool std::operator==(const std::multimap<_Key, _Tp, _Compare, _Alloc>&, const std::multimap<_Key, _Tp, _Compare, _Alloc>&)
operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x,
^
/usr/include/c++/4.8/bits/stl_multimap.h:864:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/4.8/algorithm:62:0,
from /usr/include/boost/math/tools/config.hpp:16,
from /usr/include/boost/math/special_functions/round.hpp:13,
from /opt/ros/indigo/include/ros/time.h:58,
from /opt/ros/indigo/include/ros/ros.h:38,
from /home/mertes13/catkin_ws/src/irt_visualization/include/Vehicle.h:4,
from /home/mertes13/catkin_ws/src/irt_visualization/src/Vehicle.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h:166:17: note: ‘Point2dc’ is not derived from ‘const std::multimap<_Key, _Tp, _Compare, _Alloc>’
if (*__first == __val)
^
In file included from /usr/include/c++/4.8/map:61:0,
from /opt/ros/indigo/include/ros/console.h:42,
from /opt/ros/indigo/include/ros/ros.h:40,
from /home/mertes13/catkin_ws/src/irt_visualization/include/Vehicle.h:4,
from /home/mertes13/catkin_ws/src/irt_visualization/src/Vehicle.cpp:1:
/usr/include/c++/4.8/bits/stl_map.h:962:5: note: template bool std::operator==(const std::map<_Key, _Tp, _Compare, _Alloc>&, const std::map<_Key, _Tp, _Compare, _Alloc>&)
operator==(const map<_Key, _Tp, _Compare, _Alloc>& __x,
^
/usr/include/c++/4.8/bits/stl_map.h:962:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/4.8/algorithm:62:0,
from /usr/include/boost/math/tools/config.hpp:16,
from /usr/include/boost/math/special_functions/round.hpp:13,
from /opt/ros/indigo/include/ros/time.h:58,
from /opt/ros/indigo/include/ros/ros.h:38,
from /home/mertes13/catkin_ws/src/irt_visualization/include/Vehicle.h:4,
from /home/mertes13/catkin_ws/src/irt_visualization/src/Vehicle.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h:166:17: note: ‘Point2dc’ is not derived from ‘const std::map<_Key, _Tp, _Compare, _Alloc>’
if (*__first == __val)
^
↧
Adding a cpp file to include in executable file
New to CMake and trying to figure out how to include a cpp file that an executable file links to. Trying to program Object Oriented.
I want to add a robot.cpp as a class file, so that i will be able to create a Robot object in my executable file.
The robot.cpp file at this location: include/manuscriptBuilder/robot.cpp
Made these modifications to the CMakeLists.txt:
- under find_package i added:
"robot"
- under catkin_package i added:
"DEPENDS robot"
- include_directories( include ${catkin_INCLUDE_DIRS}) - add_library(robot include/manuscriptBuilder/robot.cpp) - target_link_libraries(motor_command_pub_test_node ${catkin_LIBRARIES}) Enden up with this error message:
> CMake Warning at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
>> Could not find a package configuration file provided by "robot" with any of the following names: robotConfig.cmake robot-config.cmake >> Add the installation prefix of "robot" to CMAKE_PREFIX_PATH or set "robot_DIR" to a directory containing one of the above files. If "robot" provides a separate development package or SDK, be sure it has been installed.
> Call Stack (most recent call first):
>> ev3_ros/CMakeLists.txt:10 (find_package)> -- Could not find the required component 'robot'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
> CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:83 (find_package):>> Could not find a package configuration file provided by "robot" with any of the following names: robotConfig.cmake robot-config.cmake >> Add the installation prefix of "robot" to CMAKE_PREFIX_PATH or set "robot_DIR" to a directory containing one of the above files. If "robot" provides a separate development package or SDK, be sure it has been installed.
> Call Stack (most recent call first):
>> ev3_ros/CMakeLists.txt:10 (find_package)
> -- Configuring incomplete, errors occurred! As i said i am new to CMake and catkin and C++ all together, so any tutorials to understand the CMakeLists.txt file and how to use it in relation to ROS would make me very happy.
- under find_package i added:
"robot"
- under catkin_package i added:
"DEPENDS robot"
- include_directories( include ${catkin_INCLUDE_DIRS}) - add_library(robot include/manuscriptBuilder/robot.cpp) - target_link_libraries(motor_command_pub_test_node ${catkin_LIBRARIES}) Enden up with this error message:
> CMake Warning at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
>> Could not find a package configuration file provided by "robot" with any of the following names: robotConfig.cmake robot-config.cmake >> Add the installation prefix of "robot" to CMAKE_PREFIX_PATH or set "robot_DIR" to a directory containing one of the above files. If "robot" provides a separate development package or SDK, be sure it has been installed.
> Call Stack (most recent call first):
>> ev3_ros/CMakeLists.txt:10 (find_package)> -- Could not find the required component 'robot'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
> CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:83 (find_package):>> Could not find a package configuration file provided by "robot" with any of the following names: robotConfig.cmake robot-config.cmake >> Add the installation prefix of "robot" to CMAKE_PREFIX_PATH or set "robot_DIR" to a directory containing one of the above files. If "robot" provides a separate development package or SDK, be sure it has been installed.
> Call Stack (most recent call first):
>> ev3_ros/CMakeLists.txt:10 (find_package)
> -- Configuring incomplete, errors occurred! As i said i am new to CMake and catkin and C++ all together, so any tutorials to understand the CMakeLists.txt file and how to use it in relation to ROS would make me very happy.
↧