I recently installed ROS indigo and following the tutorial to get to know ROS. However, error occurred after `catkin_make`. I have also included the log files. Please help me out let me know how to fix this!! Appreciate it!!
----------
The error:
Base path: /home/ciara/catkin_ws
Source space: /home/ciara/catkin_ws/src
Build space: /home/ciara/catkin_ws/build
Devel space: /home/ciara/catkin_ws/devel
Install space: /home/ciara/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/ciara/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/ciara/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/indigo
-- This workspace overlays: /opt/ros/indigo
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/ciara/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.18
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 1 packages in topological order:
-- ~~ - beginner_tutorials
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'beginner_tutorials'
-- ==> add_subdirectory(beginner_tutorials)
-- Using these message generators: gencpp;genlisp;genpy
CMake Error at /opt/ros/indigo/share/genmsg/cmake/genmsg-extras.cmake:94 (message):
add_message_files() directory not found:
/home/ciara/catkin_ws/src/beginner_tutorials/msg
Call Stack (most recent call first):
beginner_tutorials/CMakeLists.txt:13 (add_message_files)
-- Configuring incomplete, errors occurred!
See also "/home/ciara/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/ciara/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
Base path: /home/ciara/catkin_ws
Source space: /home/ciara/catkin_ws/src
Build space: /home/ciara/catkin_ws/build
Devel space: /home/ciara/catkin_ws/devel
Install space: /home/ciara/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/ciara/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/ciara/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/indigo
-- This workspace overlays: /opt/ros/indigo
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/ciara/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.18
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 1 packages in topological order:
-- ~~ - beginner_tutorials
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'beginner_tutorials'
-- ==> add_subdirectory(beginner_tutorials)
-- Using these message generators: gencpp;genlisp;genpy
CMake Error at /opt/ros/indigo/share/genmsg/cmake/genmsg-extras.cmake:94 (message):
add_message_files() directory not found:
/home/ciara/catkin_ws/src/beginner_tutorials/msg
Call Stack (most recent call first):
beginner_tutorials/CMakeLists.txt:13 (add_message_files)
-- Configuring incomplete, errors occurred!
See also "/home/ciara/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/ciara/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
----------
My CMakelists.txt:
cmake_minimum_required(VERSION 2.8.3)
project(beginner_tutorials)
# Find catkin and any catkin packages
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
genmsg
)
## Declare ROS messages and services
add_message_files(DIRECTORY msg FILES Num.msg)
add_service_files(DIRECTORY srv FILES AddTwoInts.srv)
## Generate added messages and services with any dependencies listed here
generate_messages(
DEPENDENCIES
std_msgs
)
catkin_package()
include_directories(include ${catkin_INCLUDE_DIRS})
add_executable(talker src/talker.cpp)
target_link_libraries(talker ${catkin_LIBRARIES})
add_dependencies(talker beginner_tutorials_generate_messages_cpp)
add_executable(listener src/listener.cpp)
target_link_libraries(listener ${catkin_LIBRARIES})
add_dependencies(listener beginner_tutorials_generate_messages_cpp)
----------
CMakeError.log:
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/ciara/catkin_ws/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec917054501/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec917054501.dir/build.make CMakeFiles/cmTryCompileExec917054501.dir/build
make[1]: Entering directory `/home/ciara/catkin_ws/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/ciara/catkin_ws/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec917054501.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTryCompileExec917054501.dir/CheckSymbolExists.c.o -c /home/ciara/catkin_ws/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTryCompileExec917054501
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec917054501.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTryCompileExec917054501.dir/CheckSymbolExists.c.o -o cmTryCompileExec917054501 -rdynamic
CMakeFiles/cmTryCompileExec917054501.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec917054501] Error 1
make[1]: Leaving directory `/home/ciara/catkin_ws/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec917054501/fast] Error 2
File /home/ciara/catkin_ws/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/ciara/catkin_ws/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec2346830332/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2346830332.dir/build.make CMakeFiles/cmTryCompileExec2346830332.dir/build
make[1]: Entering directory `/home/ciara/catkin_ws/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/ciara/catkin_ws/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2346830332.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec2346830332.dir/CheckFunctionExists.c.o -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec2346830332
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2346830332.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec2346830332.dir/CheckFunctionExists.c.o -o cmTryCompileExec2346830332 -rdynamic -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec2346830332] Error 1
make[1]: Leaving directory `/home/ciara/catkin_ws/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec2346830332/fast] Error 2
----------
Environment variable:
ROS_ROOT=/opt/ros/indigo/share/ros
ROS_PACKAGE_PATH=/opt/ros/indigo/share:/opt/ros/indigo/stacks
ROS_MASTER_URI=http://localhost:11311
ROS_HOSTNAME=localhost
ROSLISP_PACKAGE_DIRECTORIES=
ROS_DISTRO=indigo
ROS_ETC_DIR=/opt/ros/indigo/etc/ros
↧
catkin_make failed
↧
NodeHandle initRemappings() error (win_ros)
I'm trying to run my first MSVC-compiled ROS project by following the instructions from here:
http://wiki.ros.org/win_ros/hydro/Msvc%20SDK%20Projects
The project involves building the 'hello world' talker from source - pretty straightforward.
I'm using Visual Studio Express 2012. I've been very careful to follow all the suggestions as far as project settings go. Yes, ROS_MASTER_URI is defined. The project compiles and links just fine, both in Debug and Release configurations. However, when I run the Release version from Visual Studio, I get an "access violation reading location 0x0" error with the following stack trace:
roscpp.dll!ros::NodeHandle::initRemappings(const std::map,std::allocator>,std::basic_string,std::allocator>,std::less,std::allocator>>,std::allocator,std::allocator> const ,std::basic_string,std::allocator>>>>& remappings) Line 195 C++
roscpp.dll!ros::NodeHandle::NodeHandle(const std::basic_string,std::allocator>& ns, const std::map,std::allocator>,std::basic_string,std::allocator>,std::less,std::allocator>>,std::allocator,std::allocator> const ,std::basic_string,std::allocator>>>>& remappings) Line 85 C++
RosSample.exe!main(int argc, char * * argv) Line 64 C++
msvcr110.dll!_initterm(void (void) * * pfbegin, void (void) * * pfend) Line 889 C
This is my source code, minus all the lengthy comments (Line 64 in the above stack trace refers to the ros::NodeHandle n; statement):
#include "stdafx.h"
#include "ros/ros.h"
#include "std_msgs/String.h"
int main(int argc, char **argv)
{
ros::init(argc, argv, "talker");
ros::NodeHandle n;
ros::Publisher chatter_pub = n.advertise("chatter", 1000);
ros::Rate loop_rate(10);
int count = 0;
while (ros::ok())
{
std_msgs::String msg;
std::stringstream ss;
ss << "hello world " << count;
msg.data = ss.str();
ROS_INFO("%s", msg.data.c_str());
chatter_pub.publish(msg);
ros::spinOnce();
loop_rate.sleep();
++count;
}
return 0;
}
Looking at the NodeHandle source code (http://docs.ros.org/diamondback/api/roscpp/html/node__handle_8cpp_source.html), the only things that I can begin to suspect are references to the remappings map in the NodeHandle constructor and initRemappings function, but that map should have been created using the M_String default constructor.
BTW, I tried running the Debug configuration build of my project and that one fails too, but even earlier, inside ros::init().
Any help greatly appreciated!
EDIT:
win_ros explicitly mentions that it is "for native Windows development with the Microsoft Visual C++ Compilers 2010. Currently supporting either Windows SDK 7.1 (cl/nmake) or Visual Studio 10.0." I suspect this may be my problem, since I'm using VS 2012. Someone on here had a similar problem that was fixed by changing to the VS2010 platform toolset. I've yet to try that, but I'm curious if there's a way to make it work without switching toolsets.
↧
↧
Is there a way to convert LaserScan messages to Image message?
Hello I am trying to convert laser scan data into images so that I can find "Lines".
Following are the snippets from my code:
pcl::PointCloud cloudp;
sensor_msgs::Image image;
conversion
pcl::toROSMsg (cloudp, image); //convert the cloud
cloudxyz_.publish(cloudp);
image_pub_.publish (image); //publish our cloud image
When I run it, "Failed to find match for field 'rgb' " is the error I get. When I use rviz, all I see is an Image which is full of black color.
My laser gives is 2D data (i.e, z in point cloud is 0) and I need a 2D image so that I can apply CV algorithms on the image.
Thank you.
↧
rosdep initialization error
I have installed Ubuntu 12.10 a day back. And I'm trying to install ROS. I have installed ros-groovy-destop-full. When I try to initialise rosdep, I get error.>sudo rosdep init>ERROR: cannot download default sources list from:
...
Website may be down.
But when I copy the address and paste into web browser, the links works. I am running behind proxy (with username/password), so it may be problem of proxy. But I have put proxy details in /etc/apt/apt.conf and apt-get is working fine behind proxy. How do I resolve this issue?
↧
how to fix error when running rosdep update?
Hi, I'm trying to install ros indigo on a PC with Ubuntu 14.04. I have been able to install all the packages and initialize rosdep. However, when I run the command rosdep update, I get the following error:
$ rosdep update
reading in sources list data from /etc/ros/rosdep/sources.list.d
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml]:
nonnumeric port: 'port' (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml]:
nonnumeric port: 'port' (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml]:
nonnumeric port: 'port' (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml]:
nonnumeric port: 'port' (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml]:
Failed to download target platform data for gbpdistro:
nonnumeric port: 'port'
Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index.yaml
ERROR: Rosdep experienced an error: nonnumeric port: 'port'
Please go to the rosdep page [1] and file a bug report with the stack trace below.
[1] : http://www.ros.org/wiki/rosdep
rosdep version: 0.11.4
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 136, in rosdep_main
exit_code = _rosdep_main(args)
File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 351, in _rosdep_main
return _no_args_handler(command, parser, options, args)
File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 359, in _no_args_handler
return command_handlers[command](options)
File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 545, in command_update
error_handler=update_error_handler)
File "/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 463, in update_sources_list
for dist_name in sorted(get_index().distributions.keys()):
File "/usr/lib/python2.7/dist-packages/rosdep2/rosdistrohelper.py", line 69, in get_index
_RDCache.index = rosdistro.get_index(_RDCache.index_url)
File "/usr/lib/python2.7/dist-packages/rosdistro/__init__.py", line 117, in get_index
yaml_str = load_url(url)
File "/usr/lib/python2.7/dist-packages/rosdistro/loader.py", line 48, in load_url
fh = urlopen(url, timeout=timeout)
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1222, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1153, in do_open
h = http_class(host, timeout=req.timeout) # will parse host:port
File "/usr/lib/python2.7/httplib.py", line 1170, in __init__
source_address)
File "/usr/lib/python2.7/httplib.py", line 710, in __init__
self._set_hostport(host, port)
File "/usr/lib/python2.7/httplib.py", line 738, in _set_hostport
raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
InvalidURL: nonnumeric port: 'port'
My connection to Internet seems normal. Any Idea on how to solve this?
↧
↧
Linker error on ros kinetic + Ubuntu 16.04
I am having trouble running catkin_make with the newest release of ROS. For any package I try to build from my catking workspace, I'm getting linker errors about undefined references to ROS core libraries.
For example, trying to build the gps_umd module from here http://wiki.ros.org/gps_umd:
I get the following errors:
[ 18%] Linking CXX executable /home/juancamilog/aqua_ws/devel/lib/gps_common/utm_odometry_node
CMakeFiles/gps_common/utm_odometry_node.dir/src/utm_odometry_node.cpp.o: In function `callback(boost::shared_ptr> const> const&)':
utm_odometry_node.cpp:(.text+0xcd3): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
CMakeFiles/gps_common/utm_odometry_node.dir/src/utm_odometry_node.cpp.o: In function `main':
utm_odometry_node.cpp:(.text+0x1268): undefined reference to `ros::init(int&, char**, std::string const&, unsigned int)'
utm_odometry_node.cpp:(.text+0x12c4): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map, std::allocator>> const&)'
utm_odometry_node.cpp:(.text+0x133b): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map, std::allocator>> const&)'
CMakeFiles/gps_common/utm_odometry_node.dir/src/utm_odometry_node.cpp.o: In function `void ros::Publisher::publish>>(nav_msgs::Odometry_> const&) const':
utm_odometry_node.cpp:(.text._ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_]+0xa0): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
utm_odometry_node.cpp:(.text._ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_]+0x1a3): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
utm_odometry_node.cpp:(.text._ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_]+0x29e): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
utm_odometry_node.cpp:(.text._ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_]+0x3c1): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
utm_odometry_node.cpp:(.text._ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_]+0x4c4): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
CMakeFiles/gps_common/utm_odometry_node.dir/src/utm_odometry_node.cpp.o:utm_odometry_node.cpp:(.text._ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN8nav_msgs9Odometry_ISaIvEEEEEvRKT_]+0x5d6): more undefined references to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' follow
CMakeFiles/gps_common/utm_odometry_node.dir/src/utm_odometry_node.cpp.o: In function `bool ros::NodeHandle::param(std::string const&, std::string&, std::string const&) const':
utm_odometry_node.cpp:(.text._ZNK3ros10NodeHandle5paramISsEEbRKSsRT_RKS4_[_ZNK3ros10NodeHandle5paramISsEEbRKSsRT_RKS4_]+0x27): undefined reference to `ros::NodeHandle::hasParam(std::string const&) const'
utm_odometry_node.cpp:(.text._ZNK3ros10NodeHandle5paramISsEEbRKSsRT_RKS4_[_ZNK3ros10NodeHandle5paramISsEEbRKSsRT_RKS4_]+0x42): undefined reference to `ros::NodeHandle::getParam(std::string const&, std::string&) const'
CMakeFiles/gps_common/utm_odometry_node.dir/src/utm_odometry_node.cpp.o: In function `bool ros::NodeHandle::param(std::string const&, double&, double const&) const':
utm_odometry_node.cpp:(.text._ZNK3ros10NodeHandle5paramIdEEbRKSsRT_RKS4_[_ZNK3ros10NodeHandle5paramIdEEbRKSsRT_RKS4_]+0x27): undefined reference to `ros::NodeHandle::hasParam(std::string const&) const'
utm_odometry_node.cpp:(.text._ZNK3ros10NodeHandle5paramIdEEbRKSsRT_RKS4_[_ZNK3ros10NodeHandle5paramIdEEbRKSsRT_RKS4_]+0x42): undefined reference to `ros::NodeHandle::getParam(std::string const&, double&) const'
CMakeFiles/gps_common/utm_odometry_node.dir/src/utm_odometry_node.cpp.o: In function `ros::SubscriptionCallbackHelperT> const> const&, void>::deserialize(ros::SubscriptionCallbackHelperDeserializeParams const&)':
utm_odometry_node.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN11sensor_msgs10NavSatFix_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN11sensor_msgs10NavSatFix_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0xba): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
collect2: error: ld returned 1 exit status
gps_umd/gps_common/CMakeFiles/gps_common/utm_odometry_node.dir/build.make:114: recipe for target '/home/juancamilog/aqua_ws/devel/lib/gps_common/utm_odometry_node' failed
make[2]: *** [/home/juancamilog/aqua_ws/devel/lib/gps_common/utm_odometry_node] Error 1
CMakeFiles/Makefile2:1101: recipe for target 'gps_umd/gps_common/CMakeFiles/gps_common/utm_odometry_node.dir/all' failed
make[1]: *** [gps_umd/gps_common/CMakeFiles/gps_common/utm_odometry_node.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j1" failed
This is happening with any ros package with cpp nodes under my workspace. The packages are compiled fine on another machine running 15.04 and ROS Jade. Do we need to do any migration from Jade to Kinetic related to this problem?
**UPDATE**
Because of a dependency from another library I'm using (Theano), I had changed the default gcc version to 4.9, via the update-alternatives --config command. After switching the default gcc version to 5.3.1, the code compiles without problems. Which is odd, because [here](http://www.ros.org/reps/rep-0003.html#kinetic-kame-may-2016-may-2021) it is mentioned that Kinetic Kame shoudl work with gcc 4.9.
↧
cv_bridge err cvtColorForDisplay
Hi!
when i used 'git glone https:/~~ ' to get vision_opencv
and i put this vision_opencv to my workspace/src (cf my_ws)
and i did compile using catkin_make
and i also had a Opencv2.4.9
so, i tried catkin_make to make a use my_subscriber_uvc node ( it came from my_subscriber_uvc.cpp)
but err exist : cvtColorForDisplay is not a member of cv_bridge..
how to fix this error?
please help me!
Thank you!!
↧
error installing kinetic on ubuntu 16.04 ..step 2
Can anyone help me with this issue...it says network error when I run the key (step 2)
Thank You,
↧
roslaunch can't find 'resource' and says file doesn't exist
Working through this tutorial on navigation package: http://wiki.ros.org/navigation/Tutorials/RobotSetup
I built the launch files as directed. The first one launches OK. The second one fails.
Launch file with issue:
<launch><master auto="start"/><!-- Run the map server --><node name="map_server" pkg="map_server" type="map_server" args="$(find catkin_ws)/map.pgm map_resolution"/><!--- Run AMCL --><include file="$(find amcl)/examples/amcl_diff.launch" /><node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen"><rosparam file="$(find my_robot_name_2dnav)/costmap_common_params.yaml" command="load" ns="global_costmap" /><rosparam file="$(find my_robot_name_2dnav)/costmap_common_params.yaml" command="load" ns="local_costmap" /><rosparam file="$(find my_robot_name_2dnav)/local_costmap_params.yaml" command="load" /><rosparam file="$(find my_robot_name_2dnav)/global_costmap_params.yaml" command="load" /><rosparam file="$(find my_robot_name_2dnav)/base_local_planner_params.yaml" command="load" /></node></launch>
The error code:
Traceback (most recent call last): File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/__init__.py", line 307, in main p.start() File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/parent.py", line 268, in start self._start_infrastructure() File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/parent.py", line 217, in _start_infrastructure self._load_config() File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/parent.py", line 132, in _load_config roslaunch_strs=self.roslaunch_strs, verbose=self.verbose) File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/config.py", line 451, in load_config_default loader.load(f, config, verbose=verbose) File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 730, in load self._load_launch(launch, ros_config, is_core=core, filename=filename, argv=argv, verbose=verbose) File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 702, in _load_launch self._recurse_load(ros_config, launch.childNodes, self.root_context, None, is_core, verbose) File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 638, in _recurse_load n = self._node_tag(tag, context, ros_config, default_machine, verbose=verbose) File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 95, in call return f(*args, **kwds) File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 379, in _node_tag 'launch-prefix', 'required')) File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 202, in opt_attrs return [self.resolve_args(tag_value(tag,a), context) for a in attrs] File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 183, in resolve_args return substitution_args.resolve_args(args, context=context.resolve_dict, resolve_anon=self.resolve_anon) File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 312, in resolve_args resolved = _resolve_args(resolved, context, resolve_anon, commands) File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 325, in _resolve_args resolved = commands[command](resolved, a, args, context) File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 141, in _find source_path_to_packages=source_path_to_packages) File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 184, in _find_executable full_path = _get_executable_path(rp.get_path(args[0]), path) File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 200, in get_path raise ResourceNotFound(name, ros_paths=self._ros_paths) ResourceNotFound: catkin_ws ROS path [0]=/opt/ros/jade/share/ros ROS path [1]=/home/linux ROS path [2]=/home/linux/catkin_ws ROS path [3]=/home/linux/catkin_ws/src ROS path [4]=/opt/ros/jade/share ROS path [5]=/opt/ros/jade/stacks linux@linux-Latitude-D630:~/catkin_ws/src/my_robot_name_2dnav$It is referring a folder (catkin_ws) as a resource. I'm not sure what to make of that. The error shows the ROS Package Path and it's definitely there. I have sourced it from opt folder and rebuilt without help. To see what happens if I get past that error, I deleted the map_server line from the file and ran again and got this error.
[roslaunch][INFO] 2016-06-07 21:40:29,606: starting in server mode [roslaunch.parent][INFO] 2016-06-07 21:40:29,606: starting roslaunch parent run [roslaunch][INFO] 2016-06-07 21:40:29,607: loading roscore config file /opt/ros/jade/etc/ros/roscore.xml [roslaunch][INFO] 2016-06-07 21:40:29,810: Added core node of type [rosout/rosout] in namespace [/] [roslaunch.config][INFO] 2016-06-07 21:40:29,810: loading config file move_base.launch [roslaunch][INFO] 2016-06-07 21:40:29,919: Added node of type [amcl/amcl] in namespace [/] [roslaunch][ERROR] 2016-06-07 21:40:29,957: error loadingThe file it says doesn't exist, does exist and the path is correct. So with the succession of errors, it looks like I have a configuration problem, but can't figure out what the issue is. Any help is appreciated.tag: file does not exist [/home/linux/catkin_ws/src/my_robot_name_2dnav/costmap_common_params.yaml] XML is [roslaunch][ERROR] 2016-06-07 21:40:29,958: The traceback for the exception was written to the log file [roslaunch][ERROR] 2016-06-07 21:40:29,958: Traceback (most recent call last): File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/__init__.py", line 307, in main p.start() File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/parent.py", line 268, in start self._start_infrastructure() File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/parent.py", line 217, in _start_infrastructure self._load_config() File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/parent.py", line 132, in _load_config roslaunch_strs=self.roslaunch_strs, verbose=self.verbose) File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/config.py", line 455, in load_config_default raise RLException(e) RLException: error loading tag: file does not exist [/home/linux/catkin_ws/src/my_robot_name_2dnav/costmap_common_params.yaml] XML is [rospy.core][INFO] 2016-06-07 21:40:29,958: signal_shutdown [atexit]
↧
↧
bloom; RuntimeError: Two packages have different version numbers (but it is false)
I'm trying to release a meta package using boom with the following command:
bloom-release --rosdistro indigo --track indigo summit_xl_common
And after a lot of questions it gives me the following error:
==> git-bloom-import-upstream /tmp/tmpUJpJvY/upstream-indigo-1.0.0.tar.gz --release-version 1.0.0 --replace
Creating upstream branch.
Importing archive into upstream branch...
Traceback (most recent call last):
File "/usr/bin/git-bloom-import-upstream", line 9, in
load_entry_point('bloom==0.5.21', 'console_scripts', 'git-bloom-import-upstream')()
File "/usr/lib/python2.7/dist-packages/bloom/commands/git/import_upstream.py", line 391, in main
args.replace)
File "/usr/lib/python2.7/dist-packages/bloom/commands/git/import_upstream.py", line 324, in import_upstream
_, actual_version, _ = get_package_data('upstream')
File "/usr/lib/python2.7/dist-packages/bloom/packages.py", line 91, in get_package_data
version = verify_equal_package_versions(packages.values())
File "/usr/lib/python2.7/dist-packages/catkin_pkg/packages.py", line 127, in verify_equal_package_versions
raise RuntimeError('Two packages have different version numbers (%s != %s):\n- %s\n- %s' % (package.version, version, package.filename, packages[0].filename))
RuntimeError: Two packages have different version numbers (0.0.3 != 1.0.0):
- /tmp/tmp7NakeJ/summit_xl_localization/package.xml
- /tmp/tmp7NakeJ/summit_xl_common/package.xml<== Error running command '['/usr/bin/git-bloom-import-upstream', '/tmp/tmpUJpJvY/upstream-indigo-1.0.0.tar.gz', '--release-version', '1.0.0', '--replace']'
Release failed, exiting.
It says that summit_xl_common and summit_xl_localization have different version numbers, but it is false, you can check [here](https://github.com/RobotnikAutomation/summit_xl_common/blob/indigo-devel/summit_xl_localization/package.xml) that it is version 1.0.0 (same as [summit_xl_common](https://github.com/RobotnikAutomation/summit_xl_common/blob/indigo-devel/summit_xl_common/package.xml)).
Why does it occur? How should I fix it?
Thanks
↧
Tutorial question 'Using rosmsg' error
Hello,
I have been going through the tutorials for the first time, but got stuck on the 'Using rosmsg' section. The command is : `rosmsg show beginner_tutorials/Num`, and the error is
Unable to load msg [beginner_tutorials/Num]: Cannot locate message [Num]: unknown package [beginner_tutorials] on search path [ ...
I tried re-making the package and carefully reviewed the instructions. I haven't had any other error until now. Some further information:
- the command: `rossrv show beginner_tutorials/AddTwoInts` gives a similar error.
- I am sightly confused over the code section that says:
> Also make sure you export the message runtime dependency.> catkin_package(
...
CATKIN_DEPENDS message_runtime ...
...)
Am I supposed to just uncomment this line only? I notice in the `CMakeLists.txt` there are a lot of other 'instructions', I have been ignoring them I assume this is correct?
-I am running Ubuntu 16.04 on VirtualBox, I haven't had any issues with it.
The forum won't let me upload files yet. Thanks for your help.
Perigalacticon
↧
run "rosdep install -r --from-paths ." error when I install iai_kinect2
When I was run `rosdep install -r --from-paths .`, some errors show me as following:
turtlebot@turtlebot-HP-ZBook-14-G2:~/catkin_ws/src/iai_kinect2$ rosdep install -r --from-paths .
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
kinect2_viewer: Cannot locate rosdep definition for [kinect2_bridge]
kinect2_calibration: Cannot locate rosdep definition for [kinect2_bridge]
kinect2_bridge: Cannot locate rosdep definition for [kinect2_registration]
Continuing to install resolvable dependencies...
All required rosdeps installed successfully
Some assistes show as following writing by author:
rosdep will output errors on not being able to locate [kinect2_bridge] and [depth_registration]. That is fine because they are all part of the iai_kinect2 package and rosdep does not know these packages.
what should I do, my rosdep can just know these packages.
Thank you very much!
↧
move_base corrupt linked list
I have the navigation stack working, but the move_base node is consistently crashing. The behavior is very consistent; eventually it crashes with the same error every time. The amount of time it takes to crash does vary. I'm going to post this same question on the
Here's the exact error, each time corresponding to the following warning:
[ WARN] [1466704185.100935930]: InflationLayer::updateCosts(): seen_ array size is wrong
and the error:
*** Error in `/opt/ros/indigo/lib/move_base/move_base': corrupted double-linked list: 0x00000000029ad9b0 ***
[move_base-1] process has died [pid 8680, exit code -6, cmd /opt/ros/indigo/lib/move_base/move_base cmd_vel:=/mobility_base/cmd_vel odom:=/odometry/filtered map:=/rtabmap/proj_map __name:=move_base __log:=/home/mb/.ros/log/4d826ab2-396a-11e6-ad82-b8aeed747f2b/move_base-1.log].
log file: /home/mb/.ros/log/4d826ab2-396a-11e6-ad82-b8aeed747f2b/move_base-1*.log
all processes on machine have died, roslaunch will exit
Unfortunately, the log file isn't actually written, so I haven't been able to get any useful information from there. I've done some googling and the only thing I can turn up is line 192 of the source of costmap_2d's inflation_layer.cpp (http://docs.ros.org/jade/api/costmap_2d/html/inflation__layer_8cpp_source.html). So it seems deleting the seen_ array of costmap_2d's inflation layer is causing a corruption of a linked list somewhere else. What's odd is the warning doesn't always cause the error. I'm thinking it might be cause by how rtabmap is updating proj_map, but I'm somewhat shooting in the dark. Any insight would be helpful.
Here's my basic robot setup. A kinectv1 mounted on the robot with rtabmap_ros for odometry and mapping. The move_base package uses the following:
base_local_planner_params.yaml
TrajectoryPlannerROS:
acc_lim_x: 1.0
acc_lim_y: 1.0
acc_lim_theta: 2.0
max_vel_x: 0.4
min_vel_x: 0.05
escape_vel: -0.05
max_vel_theta: 0.5
min_vel_theta: -0.5
min_in_place_vel_theta: 0.01
holonomic_robot: true
y_vels: [-0.3, -0.05, 0.05, 0.3]
xy_goal_tolerance: 0.03
yaw_goal_tolerance: 0.05
latch_xy_goal_tolerance: true
# make sure that the minimum velocity multiplied by the sim_period is less than twice the tolerance on a goal. Otherwise, the robot will prefer to rotate in place just outside of range of its target position rather than moving towards the goal.
sim_time: 1.5 # set between 1 and 2. The higher he value, the smoother the path (though more samples would be required).
sim_granularity: 0.025
angular_sim_granularity: 0.025
vx_samples: 12
vtheta_samples: 20
meter_scoring: true
pdist_scale: 0.7 # The higher will follow more the global path.
gdist_scale: 0.8
occdist_scale: 0.03
publish_cost_grid_pc: false
# move_base controller_frequency
controller_frequency: 5.0
# global planner
NavfnROS:
allow_unknown: true
visualize_potential: false
costmap_common_params.yaml
footprint: [[0.42, -0.43], [0.42, 0.43], [-0.42, 0.43], [-0.42, -0.43]]
footprint_padding: 0.02
inflation_layer:
inflation_radius: 0.02
transform_tolerance: 2
obstacle_layer:
obstacle_range: 3.0
raytrace_range: 3.5
track_unknown_space: false
observation_sources: point_cloud_sensor
point_cloud_sensor: {
sensor_frame: /camera_link,
data_type: PointCloud2,
topic: /rtabmap/cloud_map,
expected_update_rate: 1.0,
max_obstacle_height: 3.0,
min_obstacle_height: 0.1,
marking: true,
clearing: true
}
global_costmap_params.yaml
global_costmap:
global_frame: /map
robot_base_frame: base_footprint
update_frequency: 0.5
publish_frequency: 0.5
always_send_full_costmap: true
static_map: true
plugins:
- {name: static_layer, type: "rtabmap_ros::StaticLayer"}
- {name: obstacle_layer, type: "costmap_2d::ObstacleLayer"}
- {name: inflation_layer, type: "costmap_2d::InflationLayer"}
local_costmap_params.yaml
local_costmap:
global_frame: odom
robot_base_frame: base_footprint
update_frequency: 1
publish_frequency: 1
static_map: false
rolling_window: true
width: 6.0
height: 6.0
resolution: 0.025
#origin_x: -3.0
#origin_y: -3.0
plugins:
- {name: obstacle_layer, type: "costmap_2d::ObstacleLayer"}
- {name: inflation_layer, type: "costmap_2d::InflationLayer"}
And here's my rtabmap.launch
↧
↧
Uknown CMake Command "catkin_package"
This CMakeLists.txt File
cmake_minimum_required(VERSION 2.8)
project(ardrone_tutorials)
find_package(catkin REQUIRED)
catkin_package()
install(PROGRAMS
src/drone_controller.py
src/drone_status.py
src/drone_video_display.py
src/joystick_controller.py
src/keyboard_controller.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} )
install(DIRECTORY launch/
DESTINATION
${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
)
Gives the results
rosmake starting...
[ rosmake ] Packages requested are:
['ardrone_tutorials']
[ rosmake ] Logging to directory
/home/ardrone/.ros/rosmake/rosmake_output-20160628-151821
[ rosmake ] Expanded args
['ardrone_tutorials'] to:
['ardrone_tutorials']
[rosmake-0] Starting >>> roslang [
make ]
[rosmake-0] Finished <<< roslang No
Makefile in package roslang
[rosmake-0] Starting >>> roscpp [ make
]
[rosmake-0] Finished <<< roscpp No
Makefile in package roscpp
[rosmake-0] Starting >>> geometry_msgs
[ make ]
[rosmake-0] Finished <<< geometry_msgs
No Makefile in package geometry_msgs
[rosmake-0] Starting >>> sensor_msgs [
make ]
[rosmake-0] Finished <<< sensor_msgs
No Makefile in package sensor_msgs
[rosmake-0] Starting >>> rosbuild [
make ]
[rosmake-0] Finished <<< rosbuild No
Makefile in package rosbuild
[rosmake-0] Starting >>> roslib [ make
]
[rosmake-0] Finished <<< roslib No
Makefile in package roslib
[rosmake-0] Starting >>> rosconsole [
make ]
[rosmake-0] Finished <<< rosconsole
No Makefile in package rosconsole
[rosmake-0] Starting >>> pluginlib [
make ]
[rosmake-0] Finished <<< pluginlib
ROS_NOBUILD in package pluginlib
[rosmake-0] Starting >>>
message_filters [ make ]
[rosmake-0] Finished <<<
message_filters No Makefile in
package message_filters [rosmake-0]
Starting >>> image_transport [ make ]
[rosmake-0] Finished <<<
image_transport ROS_NOBUILD in package
image_transport [rosmake-0] Starting
>>> std_srvs [ make ] [rosmake-0] Finished <<< std_srvs No
Makefile in package std_srvs
[rosmake-0] Starting >>> bullet [ make
]
[rosmake-0] Finished <<< bullet
ROS_NOBUILD in package bullet
[rosmake-0] Starting >>> angles [ make
]
[rosmake-0] Finished <<< angles
ROS_NOBUILD in package angles
[rosmake-0] Starting >>> rospy [ make
]
[rosmake-0] Finished <<< rospy No
Makefile in package rospy
[rosmake-0] Starting >>> rostest [
make ]
[rosmake-0] Finished <<< rostest No
Makefile in package rostest
[rosmake-0] Starting >>> roswtf [ make
]
[rosmake-0] Finished <<< roswtf No
Makefile in package roswtf
[rosmake-0] Starting >>> tf [ make ]
[rosmake-0] Finished <<< tf
ROS_NOBUILD in package tf
[rosmake-0] Starting >>>
common_rosdeps [ make ]
[rosmake-0] Finished <<<
common_rosdeps ROS_NOBUILD in package
common_rosdeps [rosmake-0] Starting
>>> camera_calibration_parsers [ make ] [rosmake-0]
Finished <<<
camera_calibration_parsers ROS_NOBUILD
in package camera_calibration_parsers
[rosmake-0] Starting >>>
camera_info_manager [ make ]
[rosmake-0] Finished <<<
camera_info_manager ROS_NOBUILD in
package camera_info_manager
[rosmake-0] Starting >>>
ardrone_autonomy [ make ]
[rosmake-0] Finished <<<
ardrone_autonomy [PASS] [ 4.55 seconds
] [rosmake-0] Starting
>>> diagnostic_msgs [ make ] [rosmake-0] Finished <<<
diagnostic_msgs No Makefile in
package diagnostic_msgs [rosmake-0]
Starting >>> std_msgs [ make ]
[rosmake-0] Finished <<< std_msgs No
Makefile in package std_msgs
[rosmake-0] Starting >>>
diagnostic_updater [ make ]
[rosmake-0] Finished <<<
diagnostic_updater ROS_NOBUILD in
package diagnostic_updater [rosmake-0]
Starting >>> rosbag [ make ]
[rosmake-0] Finished <<< rosbag No
Makefile in package rosbag
[rosmake-0] Starting >>> joy [ make ]
[rosmake-0] Finished <<< joy
ROS_NOBUILD in package joy
[rosmake-0] Starting >>>
ardrone_tutorials [ make ]
[ rosmake ] All 9
linesardrone_tutorials: 0.2 sec ] [ 1
Active 26/27 Complete ]
{------------------------------------------------------------------------------- mkdir -p bin cd build && cmake -Wdev
-DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake ..
TODO: implement add_roslaunch_check()
in rostest-extras.cmake. CMake Error
at CMakeLists.txt:5 (catkin_package):
Unknown CMake command "catkin_package".
-- Configuring incomplete, errors occurred!
-------------------------------------------------------------------------------} [ rosmake ] Output from build of
package ardrone_tutorials written to:
[ rosmake ]
/home/ardrone/.ros/rosmake/rosmake_output-20160628-151821/ardrone_tutorials/build_output.log
[rosmake-0] Finished <<<
ardrone_tutorials [FAIL] [ 0.25
seconds ] [ rosmake ]
Halting due to failure in package
ardrone_tutorials. [ rosmake ]
Waiting for other threads to complete.
[ rosmake ] Results:
[ rosmake ] Built 27 packages with 1
failures.
[ rosmake ] Summary output to
directory
[ rosmake ]
/home/ardrone/.ros/rosmake/rosmake_output-20160628-151821
Any idea why the CMake Error happens? The find_package(catkin) was in the line before catkin_package(), so I don't know waht else is needed. The catkin package is also under the share folder in the opt/ros/fuerte directory.
↧
/dev/video0 error while using usb_cam driver
I am using usb_cam driver to use a camera. When i try to run the driver using *rosrun usb_cam usb_cam_node* , I get the following error.
[Screenshot from 2016-06-30 17:43:53.png](/upfiles/14673086668696815.png)
*Cannot identify '/dev/video0' : 2, No such file or directory*
Can i know how to fix this ?
↧
building from source producing RT_LIBRARY-NOTFOUND (diagnostics pacakge)
I am trying to build ROS from sources and I am following http://wiki.ros.org/kinetic/Installation/Source for the same but cmake is returning an error ,for the complete error please have a look at https://paste.kde.org/pziwmekkj .
I have installed it successfully from http://wiki.ros.org/kinetic/Installation/Ubuntu .I hope this is not interfering with building process.
↧
Must Compile Message and Service Several Times To Work
Folks (sorry for the upper case in advance...they just to make sure people understand those are **examples** of my code),
What is the proper way to create a CMakeList.txt file that includes messages and services? Every time I create a new group of messages or services and include them in my code, for **EXAMPLE**,
"my_package_msgs/MessageOrService.h"
it always takes a few "catkin_makes" for my system to recognize the library. Here is my CMakeList file:
cmake_minimum_required(VERSION 2.8.3)
project(message_package_msgs)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
message_generation
geometry_msgs
sensor_msgs
)
add_message_files(
DIRECTORY
msg
FILES
Message_EXAMPLE.msg
)
add_service_files(
DIRECTORY
srv
FILES
Service_EXAMPLE.srv
)
generate_messages(
DEPENDENCIES
std_msgs
geometry_msgs
sensor_msgs
)
catkin_package(
CATKIN_DEPENDS roscpp rospy std_msgs message_runtime geometry_msgs sensor_msgs
include_directories(
${catkin_INCLUDE_DIRS}
)
And my package.xml with the build/run only:
catkin roscpp rospy std_msgs message_generation geometry_msgs sensor_msgs roscpp rospy std_msgs sensor_msgs message_runtime geometry_msgs
What am I missing?
↧
↧
uvc_cam can't locate node!
Hello,
My system is Ubuntu 15.04 and I use ros jade. I run the uvc_cam package, but every time I type
roslaunch uvc_cam test_uvc.launch
i get this error
ERROR: cannot launch node of type [uvc_cam/uvc_cam_node.cpp]: can't locate node [uvc_cam_node.cpp] in package [uvc_cam]
Any idea?
Thanks
↧
ros_arduino_bridge error help
hi,
i use ros indigo on my PC and i install with git ros_arduino_bridge. i configure port and baud with 57600.
when i run `roslaunch ros_arduino_python arduino.launch` i receive this:
> Connecting to Arduino on port
> /dev/ttyACM0 ... Traceback (most
> recent call last): File
> "/home/pi/catkin_ws/src/ros_arduino_bridge/ros_arduino_python/nodes/arduino_node.py",
> line 195, in > myArduino = ArduinoROS() File "/home/pi/catkin_ws/src/ros_arduino_bridge/ros_arduino_python/nodes/arduino_node.py",
> line 87, in __init__
> self.controller.connect() File "/home/pi/catkin_ws/src/ros_arduino_bridge/ros_arduino_python/src/ros_arduino_python/arduino_driver.py",
> line 68, in connect
> test = self.get_baud() File "/home/pi/catkin_ws/src/ros_arduino_bridge/ros_arduino_python/src/ros_arduino_python/arduino_driver.py",
> line 261, in get_baud
> return int(self.execute('b')); File
> "/home/pi/catkin_ws/src/ros_arduino_bridge/ros_arduino_python/src/ros_arduino_python/arduino_driver.py",
> line 178, in execute
> return int(value) TypeError: int() argument must be a string or a number,
> not 'NoneType' [INFO] [WallTime:
> 1468839317.723302] Stopping the robot... [INFO] [WallTime:
> 1468839317.724447] Shutting down Arduino Node... [arduino-2] process
> has died [pid 3268, exit code 1, cmd
> /home/pi/catkin_ws/src/ros_arduino_bridge/ros_arduino_python/nodes/arduino_node.py
> __name:=arduino __log:=/home/pi/.ros/log/17f4efd0-4cd6-11e6-bdc9-b4b676bf3056/arduino-2.log].
> log file:
> /home/pi/.ros/log/17f4efd0-4cd6-11e6-bdc9-b4b676bf3056/arduino-2*.log
Edit: my_arduino_params.yaml
port: /dev/ttyACM0
baud: 57600
timeout: 0.1
rate: 50
sensorstate_rate: 10
use_base_controller: False
base_controller_rate: 10
# For a robot that uses base_footprint, change base_frame to base_footprint
base_frame: base_link
# === Robot drivetrain parameters
#wheel_diameter: 0.146
#wheel_track: 0.2969
#encoder_resolution: 8384 # from Pololu for 131:1 motors
#gear_reduction: 1.0
#motors_reversed: True
# === PID parameters
#Kp: 10
#Kd: 12
#Ki: 0
#Ko: 50
#accel_limit: 1.0
# === Sensor definitions. Examples only - edit for your robot.
# Sensor type can be one of the follow (case sensitive!):
# * Ping
# * GP2D12
# * Analog
# * Digital
# * PololuMotorCurrent
# * PhidgetsVoltage
# * PhidgetsCurrent (20 Amp, DC)
sensors: {
#motor_current_left: {pin: 0, type: PololuMotorCurrent, rate: 5},
#motor_current_right: {pin: 1, type: PololuMotorCurrent, rate: 5},
#ir_front_center: {pin: 2, type: GP2D12, rate: 10},
#sonar_front_center: {pin: 5, type: Ping, rate: 10},
arduino_led: {pin: 13, type: Digital, rate: 5, direction: output}
}
↧
mavros catkin_build error
Hi , I followed the steps on ROS wiki about mavros to install .
But I don't know why it can't be compiled suddenly .
Could anyone give me a hand? thank you!!

↧