Hello All,
So I recently upgraded to Ubuntu 13.04 at which time I was forced to switch from ROS fuerte to one of the newer distros, in this case Hydro.
I have been working on developing my own "navigation stack" for fuerte for several months now and have been doing all of my simulations in stage. After installing Hydro and catkinizing all of my fuerte packages the last thing I need to do is install stage and I am having some issues doing so.
I understand that stage for ros has now been changed to a two-part setup with a 'stage' and 'stage_ros' package, both of which are automatically installed with hydro-desktop-full, however I want to install them from source in my catkin workspace so that I can more easily edit the wrapper.
On the ROS wiki there are listed git's for each at:
https://github.com/rtv/Stage
and
https://github.com/ros-simulation/stage_ros
however that is where the description of the new setup ends.
I have tried downloading the two git's but when I try and build my catkin workspace I receive the following errors:
-- checking for module 'stage'
-- package 'stage' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (message):
Could NOT find Stage (missing: Stage_LIBRARIES Stage_INCLUDE_DIRS)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:291 (_FPHSA_FAILURE_MESSAGE)
stage_ros/cmake/StageConfig.cmake:23 (find_package_handle_standard_args)
stage_ros/CMakeLists.txt:11 (find_package)
-- Configuring incomplete, errors occurred!
Invoking "cmake" failed
Has anyone tried installing stage manually for ROS Hydro and could help me?
↧
Issues installing stage/stage_ros from source on hydro
↧
Build packages with more than one .cpp
I have received some packages from Fuerte which I need to compile in Hydro with catkin.
Each package has more than one source file .cpp
In rosbuild, there was:
rosbuild_add_executable([file1])
rosbuild_add_executable([file2])
In catkin I did the same but with add_executable
The problem is that if I add both files (with different names of executables of course) the program doesn't compile
If I omit one of them, everything works properly, but I need both.
I don't know if the solution is to create two packages or I need to add anything to CMakeLists.txt
cmake_minimum_required(VERSION 2.8.3)
project(test_imu)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
message_generation
nav_msgs
robotnik_msgs
roscpp
sensor_msgs
geometry_msgs
)
## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)
find_package(MRPT REQUIRED
gui
slam
)
find_package(gazebo REQUIRED)
include_directories(include ${catkin_INCLUDE_DIRS} ${GAZEBO_INCLUDE_DIRS} ${SDFormat_INCLUDE_DIRS})
include_directories("/home/summitxl/catkin_ws/src/Ensayos/test_imu/include")
## Uncomment this if the package has a setup.py. This macro ensures
## modules and global scripts declared therein get installed
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
# catkin_python_setup()
################################################
## Declare ROS messages, services and actions ##
################################################
## To declare and build messages, services or actions from within this
## package, follow these steps:
## * Let MSG_DEP_SET be the set of packages whose message types you use in
## your messages/services/actions (e.g. std_msgs, actionlib_msgs, ...).
## * In the file package.xml:
## * add a build_depend and a run_depend tag for each package in MSG_DEP_SET
## * If MSG_DEP_SET isn't empty the following dependencies might have been
## pulled in transitively but can be declared for certainty nonetheless:
## * add a build_depend tag for "message_generation"
## * add a run_depend tag for "message_runtime"
## * In this file (CMakeLists.txt):
## * add "message_generation" and every package in MSG_DEP_SET to
## find_package(catkin REQUIRED COMPONENTS ...)
## * add "message_runtime" and every package in MSG_DEP_SET to
## catkin_package(CATKIN_DEPENDS ...)
## * uncomment the add_*_files sections below as needed
## and list every .msg/.srv/.action file to be processed
## * uncomment the generate_messages entry below
## * add every package in MSG_DEP_SET to generate_messages(DEPENDENCIES ...)
## Generate messages in the 'msg' folder
# add_message_files(
# FILES
# Message1.msg
# Message2.msg
# )
## Generate services in the 'srv' folder
# add_service_files(
# FILES
# Service1.srv
# Service2.srv
# )
## Generate actions in the 'action' folder
# add_action_files(
# FILES
# Action1.action
# Action2.action
# )
## Generate added messages and services with any dependencies listed here
# generate_messages(
# DEPENDENCIES
# std_msgs # Or other packages containing msgs
# )
###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if you package contains header files
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES test_imu
# CATKIN_DEPENDS other_catkin_pkg
DEPENDS gazebo_ros
)
###########
## Build ##
###########
## Specify additional locations of header files
## Your package locations should be listed before other locations
## Declare a cpp library
# add_library(test_imu
# src/${PROJECT_NAME}/test_imu.cpp
# )
## Declare a cpp executable
#add_executable(test_imu_node src/test_imu_node.cpp)
add_executable(test_imu src/test_imu.cpp)
#add_executable(test_imu_results src/test_imu_results.cpp)
## Add cmake target dependencies of the executable/library
## as an example, message headers may need to be generated before nodes
# add_dependencies(test_imu_node test_imu_generate_messages_cpp)
## Specify libraries to link a library or executable target against
# target_link_libraries(test_imu_node
# ${catkin_LIBRARIES
target_link_libraries(test_imu
${catkin_LIBRARIES}
)
# )
#############
## Install ##
#############
# all install targets should use catkin DESTINATION variables
# See http://ros.org/doc/api/catkin/html/adv_user_guide/variables.html
## Mark executable scripts (Python etc.) for installation
## in contrast to setup.py, you can choose the destination
# install(PROGRAMS
# scripts/my_python_script
# DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
# )
## Mark executables and/or libraries for installation
# install(TARGETS test_imu test_imu_node
# ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
# LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
# )
## Mark cpp header files for installation
# install(DIRECTORY include/${PROJECT_NAME}/
# DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
# FILES_MATCHING PATTERN "*.h"
# PATTERN ".svn" EXCLUDE
# )
## Mark other files for installation (e.g. launch and bag files, etc.)
# install(FILES
# # myfile1
# # myfile2
# DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
# )
#############
## Testing ##
#############
## Add gtest based cpp test target and link libraries
# catkin_add_gtest(${PROJECT_NAME}-test test/test_test_imu.cpp)
# if(TARGET ${PROJECT_NAME}-test)
# target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
# endif()
## Add folders to be run by python nosetests
# catkin_add_nosetests(test)
↧
↧
hydro turtlebot catkin ROS package: Service [kobuki/load_nodelet] has not been advertised
I'm trying to go through the tutorial for Kobuki Turtlebot on this page: wiki.ros.org/kobuki/Tutorials/Write%20your%20own%20controller%20for%20Kobuki
But when I tried to launch the bump_blink_controller, it gets stuck at waiting for service kobuki/load_nodelet. I already did minimal.launch and it seems fine.
Below is the full roslaunch output, and the last line is where it's stuck. I followed catkin instruction to initialize my catkin workspace, is there anything I missed while trying to build the package?
turtlebot@turtlebot:/opt/ros/hydro/share/kobuki_controller_tutorial$ roslaunch kobuki_controller_tutorial bump_blink_app.launch --screen ... logging to /home/turtlebot/.ros/log/50d2e6c2-f25b-11e3-a454-240a641beb01/roslaunch-turtlebot-15308.log Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.
started roslaunch server http:// 192.168.1.108:54204/
SUMMARY ========
PARAMETERS * /rosdistro * /rosversion
NODES / bump_blink_controller (nodelet/nodelet)
ROS_MASTER_URI=http:// localhost:11311
core service [/rosout] found process[bump_blink_controller-1]: started with pid [15326] [ INFO] [1402595998.924197642]: Loading nodelet /bump_blink_controller of type kobuki_controller_tutorial/BumpBlinkControllerNodelet to manager kobuki with the following remappings: [ INFO] [1402595998.924404875]: /bump_blink_controller/commands/led1 -> /mobile_base/commands/led1 [ INFO] [1402595998.924468276]: /bump_blink_controller/events/bumper -> /mobile_base/events/bumper > [ INFO] [1402595998.928954200]:> waitForService: Service> [/kobuki/load_nodelet] has not been> advertised, waiting...
↧
problems with building ptam
Hi i want to work with ptam,
the problem is, that i can't build it. I followed the [instructions](http://wiki.ros.org/ethzasl_ptam) but i have some problems:
Rosdep:
rosdep install ptam
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
ptam: Cannot locate rosdep definition for [ptam_com]
rosmake:
rosmake ethzasl_ptam
[ rosmake ] rosmake starting...
[ rosmake ] Packages requested are: ['ethzasl_ptam']
[ rosmake ] Logging to directory /home/gerken/.ros/rosmake/rosmake_output-20140710-152734
[ rosmake ] Expanded args ['ethzasl_ptam'] to:
[]
[ rosmake ] WARNING: The stack "catkin" was not found. We will assume it is using the new buildsystem and try to continue...
[ rosmake ] Results:
[ rosmake ] Built 0 packages with 0 failures.
[ rosmake ] Summary output to directory
[ rosmake ] /home/gerken/.ros/rosmake/rosmake_output-20140710-152734
So i thought i could compile manually by using make in the main folder.
It runs for ~ 5mins and then exits with following error:
CMake Error at /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:72 (find_package):
Could not find a configuration file for package ptam_com.
Set ptam_com_DIR to the directory containing a CMake configuration file for
ptam_com. The file will have one of the following names:
ptam_comConfig.cmake
ptam_com-config.cmake
Call Stack (most recent call first):
CMakeLists.txt:10 (find_package)
CMake Warning at /opt/ros/groovy/share/catkin/cmake/catkin_package.cmake:406 (message):
catkin_package() include dir
'/home/gerken/ROS/pkg/ethzasl_ptam/ptam/build/devel/include' should be
placed in the devel space instead of the build space
Call Stack (most recent call first):
/opt/ros/groovy/share/catkin/cmake/catkin_package.cmake:98 (_catkin_package)
CMakeLists.txt:28 (catkin_package)
-- checking for module 'gtk+-2.0'
-- found gtk+-2.0, version 2.24.10
-- Configuring incomplete, errors occurred!
make[2]: *** [all] Fehler 1
make[2]: Verlasse Verzeichnis '/home/gerken/ROS/pkg/ethzasl_ptam/ptam'
make[1]: *** [all] Fehler 2
make[1]: Verlasse Verzeichnis '/home/gerken/ROS/pkg/ethzasl_ptam/ptam'
make: *** [all] Fehler 2
I use hydro but since ptam doesn't support hydro i installed groovy and changed the "source" in the .bashrc.
$ROS_PACKAGE_PATH is
/opt/ros/groovy/share:/opt/ros/groovy/stacks:/home/gerken/ROS/pkg/ethzasl_ptam
Could anybody help me with building the package?
Thanks Andreas
↧
No python PIL or empy; build fail Mac Mavericks
Hello -- just tried a build today on a fresh mac. It got stuck looking for two python packages, PIL and empy. Here is a transcript of my efforts. I'd be grateful for any advice.
While following these instructions
http..//wiki.ros.org/hydro/Installation/OSX/Homebrew/Source
i get this error:
Downloading/unpacking PIL
Could not find any downloads that satisfy the requirement PIL
Some externally hosted files were ignored (use --allow-external PIL to allow).
Cleaning up...
No distributions at all found for PIL
Storing debug log for failure in /Users/anonym/Library/Logs/pip.log
at this step:
$ rosdep install --from-paths src --ignore-src --rosdistro hydro -y
following these instructions:
sudo pip --allow-external -U PIL
produced the same result.
leading to this stack-overflow answer:
http..//stackoverflow.com/questions/20060096/installing-pil-with-pip
which didn't help, because I eventually had this catastrophe:
$ ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release
Base path: /Users/anonym/ros_catkin_ws
Source space: /Users/anonym/ros_catkin_ws/src
Build space: /Users/anonym/ros_catkin_ws/build_isolated
Devel space: /Users/anonym/ros_catkin_ws/devel_isolated
Install space: /Users/anonym/ros_catkin_ws/install_isolated
Additional CMake Arguments: -DCMAKE_BUILD_TYPE=Release
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~ traversing 251 packages in topological order:
~~ - catkin
~~ - genmsg
...
~~ - rotate_recovery
~~ - move_base
~~ - xacro
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The packages or cmake arguments have changed, forcing cmake invocation
==> Processing catkin package: 'catkin'
==> Creating build directory: 'build_isolated/catkin'
==> cmake /Users/anonym/ros_catkin_ws/src/catkin -DCATKIN_DEVEL_PREFIX=/Users/anonym/ros_catkin_ws/devel_isolated/catkin -DCMAKE_INSTALL_PREFIX=/Users/anonym/ros_catkin_ws/install_isolated -DCMAKE_BUILD_TYPE=Release in '/Users/anonym/ros_catkin_ws/build_isolated/catkin'
-- The C compiler identification is AppleClang 5.1.0.5030040
-- The CXX compiler identification is AppleClang 5.1.0.5030040
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Using CATKIN_DEVEL_PREFIX: /Users/anonym/ros_catkin_ws/devel_isolated/catkin
-- Using CMAKE_PREFIX_PATH:
-- Found PythonInterp: /usr/bin/python (found version "2.7.5")
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Python version: 2.7
-- Using default Python package layout
-- Could NOT find PY_em (missing: PY_EM)
CMake Error at cmake/empy.cmake:28 (message):
Unable to find either executable 'empy' or Python module 'em'... try
installing package 'python-empy'
Call Stack (most recent call first):
cmake/all.cmake:139 (include)
CMakeLists.txt:8 (include)
-- Configuring incomplete, errors occurred!
See also "/Users/anonym/ros_catkin_ws/build_isolated/catkin/CMakeFiles/CMakeOutput.log".
<== Failed to process package 'catkin':
Command 'cmake /Users/anonym/ros_catkin_ws/src/catkin -DCATKIN_DEVEL_PREFIX=/Users/anonym/ros_catkin_ws/devel_isolated/catkin -DCMAKE_INSTALL_PREFIX=/Users/anonym/ros_catkin_ws/install_isolated -DCMAKE_BUILD_TYPE=Release' returned non-zero exit status 1
Reproduce this error by running:
==> cd /Users/anonym/ros_catkin_ws/build_isolated/catkin && cmake /Users/anonym/ros_catkin_ws/src/catkin -DCATKIN_DEVEL_PREFIX=/Users/anonym/ros_catkin_ws/devel_isolated/catkin -DCMAKE_INSTALL_PREFIX=/Users/anonym/ros_catkin_ws/install_isolated -DCMAKE_BUILD_TYPE=Release
Command failed, exiting.
$ sudo pip install python-empy
Downloading/unpacking python-empy
Could not find any downloads that satisfy the requirement python-empy
Cleaning up...
No distributions at all found for python-empy
Storing debug log for failure in /Users/anonym/Library/Logs/pip.log
I'd be grateful for advice.
↧
↧
Custom msg: strange error during building
Hi,
I really don t understand what is wrong in my program.
I cannot get a custom msg working, I think it depends on the dependecies with the other packages. Here is my bone program: a simple publisher that should output a float32 just for testing:
#include
#include "msg/customMsg.msg"
int main( int argc, char **argv ) {
ros::init( argc, argv, "node_anadyr" );
ros::NodeHandle node;
ros::Publisher pub = node.advertise( "topic_alpha", 100 );
ros::Rate rate( 2 );
while( ros::ok() ) {
msg::customMsg message;
message.data = 3.3;
pub.publish( message );
rate.sleep();
}
}
Of course i created a folder in my package:
jack@D-21:~/workspace_ros/src/anadyr$ ls -l | grep msg
drwxrwxr-x 2 jack jack 4096 Jul 25 23:26 msg
inside I put the following file
customMsg.msg
containing the following line:
float32 data
but when I run the catkin_make I get the following error
....
....
####
#### Running command: "make -j1 -l1" in "/home/wilhem/workspace_ros/build"
####
Scanning dependencies of target anadyr
[ 10%] Building CXX object anadyr/CMakeFiles/anadyr.dir/main.cpp.o
In file included from /home/wilhem/workspace_ros/src/anadyr/main.cpp:2:0:
/home/wilhem/workspace_ros/src/anadyr/msg/customMsg.msg:1:1: error: ‘float32’ does not name a type
float32 data
^
make[2]: *** [anadyr/CMakeFiles/anadyr.dir/main.cpp.o] Fehler 1
make[1]: *** [anadyr/CMakeFiles/anadyr.dir/all] Fehler 2
make: *** [all] Fehler 2
Invoking "make" failed
Here is my CMakelist.txt
cmake_minimum_required(VERSION 2.8.3)
project(anadyr)
find_package(catkin REQUIRED COMPONENTS roscpp message_generation std_msgs)
## Generate messages in the 'msg' folder
add_message_files(
FILES
customMsg.msg
)
## Generate added messages and services with any dependencies listed here
generate_messages(
DEPENDENCIES
std_msgs
)
catkin_package(
CATKIN_DEPENDS
message_runtime
std_msgs
)
# add_executable(anadyr_node src/anadyr_node.cpp)
add_executable(anadyr main.cpp)
target_link_libraries(anadyr ${catkin_LIBRARIES})
and here my package.xml:
anadyr 0.0.0 The anadyr package wilhem TODO catkin roscpp message_generation std_msgs roscpp message_runtime std_msgs
I read all the tutorials I could find, but it didnt work.
What worng in my dependencies?!? What should I do to use custom messages in my application?
Regards
↧
is it possible to build a map without gmapping and keyboard teleop?
i have a picture of a room and i want to load this picture or the coordinates of the room into turtlebot and convert it to map through rviz.. any idea ?
thanks in advance..
↧
Install ROS Package Globally
I was wondering if it was possible to install a ROS package from source globally via `catkin_make install`? i.e., I would want the package installed into the /opt/ros/indigo/... location instead of the catkin workspace. The use case is for a package not in the build farm that we wanted all users on our robot to have access to.
↧
How to build catkin compatible third party library in catkin workspace?
I have followed the recommendations for allowing a third-party library (which I maintain) to be built in the ROS ecosystem, by adding the relevant package.xml file and corresponding install target.
However, I would like now to build a ros node which depends on this package and therefore would like this third-party library to be built inside my catkin workspace. I have moved my third-party library to the source space of my catkin workspace, but now catkin_make complains:
This workspace contains non-catkin packages in it, and catkin cannot build
a non-homogeneous workspace without isolation.
How can I make catkin_make to invoke catkin_make_isolated for these non-catkin packages automatically? Otherwise, what is the usual practice in these cases? I would like to avoid maintaining different catkin workspaces since it complicates the workflow
↧
↧
Can't run packages with latest distribution?
I have now the Indigo ROS distribution, latest one until the time of writing (with Ubuntu 14.04). When I go in a package (on the ROS wiki) I can only use it with the distributions that it has under it's name (with the blue buttons) or is that only the documentation? For example if in a package it says only Groovy and Hydro, can I use it in Indigo?
If I can't do that, I remember reading that I can have multiple distributions in my computer (at least if I use the **catkin** file system). So I can have "groovy" and "indigo" ?
Can I also create a package using packages from different distributions? If yes, how do I do it using the catkin method?
↧
error while building after adding a Subscriber node
I created a subscriber node "Listener.cpp" in the **src** folder of the package **ardrone_autonomy**.
I also modified the CMakeLists.txt file by adding dependency, executable link
However, when I go to my catkin workspace and type in "catkin_make",
It builds fine except for something wrong with my new file. What am I missing/ doing wrong?
ERROR shown below:
...
...
[100%] Building CXX object ardrone_autonomy/CMakeFiles/ardrone_driver.dir/src/listener.cpp.o
Linking CXX executable /home/voladoddi/catkin_ws/devel/lib/ardrone_autonomy/ardrone_driver
CMakeFiles/ardrone_driver.dir/src/listener.cpp.o: In function `main':
listener.cpp:(.text+0x152): multiple definition of `main'
CMakeFiles/ardrone_driver.dir/src/ardrone_driver.cpp.o:ardrone_driver.cpp:(.text+0x16a61): first defined here
/usr/bin/ld: cannot find -llistener
collect2: ld returned 1 exit status
make[2]: *** [/home/voladoddi/catkin_ws/devel/lib/ardrone_autonomy/ardrone_driver] Error 1
make[1]: *** [ardrone_autonomy/CMakeFiles/ardrone_driver.dir/all] Error 2
make: *** [all] Error 2
Invoking "make" failed
I checked the .cpp file I wrote. I cannot see any multiple definitions of main in the file. There's no other subscriber node named the same way either.
**EDIT** - As William pointed out, I was trying add the node to the executable of the existing package. However, I added two lines to the end of my Subscriber.cpp file like below:
#adding subscriber's node executable to the end of CMakeLists.txt file - POOJA
add_executable(subscriber src/subscriber.cpp)
target_link_libraries(subscriber ${catkin_LIBRARIES})
And now I'm getting the following errors:
Build done.
Checking required Ubuntu packages ...
/home/voladoddi/catkin_ws/src/ardrone_autonomy/src/subscriber.cpp: In function ‘void ReceiveData(const ConstPtr&)’:
/home/voladoddi/catkin_ws/src/ardrone_autonomy/src/subscriber.cpp:8:2: error: ‘const struct ardrone_autonomy::Navdata_>’ has no member named ‘data’
/home/voladoddi/catkin_ws/src/ardrone_autonomy/src/subscriber.cpp: In function ‘int main(int, char**)’:
/home/voladoddi/catkin_ws/src/ardrone_autonomy/src/subscriber.cpp:17:54: error: ‘Navdata’ was not declared in this scope
/home/voladoddi/catkin_ws/src/ardrone_autonomy/src/subscriber.cpp:17:54: note: suggested alternative:
/home/voladoddi/catkin_ws/devel/include/ardrone_autonomy/Navdata.h:246:61: note: ‘ardrone_autonomy::Navdata’
ok.
Building ARDroneTool/Lib
make[2]: *** [ardrone_autonomy/CMakeFiles/subscriber.dir/src/subscriber.cpp.o] Error 1
make[1]: *** [ardrone_autonomy/CMakeFiles/subscriber.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Building ARDroneTool/Lib
[ 4%] Performing install step for 'ardronelib'
make[3]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
[ 5%] Completed 'ardronelib'
[ 7%] Built target ardronelib
make: *** [all] Error 2
Here is my subscriber code:
#include "ros/ros.h"
#include "ardrone_autonomy/Navdata.h"
//The topics subscribed to : Time (from the header), Pitch angle(rotY)
// where the MESSAGE= ardrone_autonomy
void ReceiveData(const ardrone_autonomy::Navdata::ConstPtr& rot)
{
ROS_INFO("Time: %d, Pitch angle: %d",rot->data.header.stamp.to_sec(),rot->rotY);
}
//instantiating subscriber
int main(int argc, char **argv)
{
ros::init(argc,argv,"subscriber");
ros::NodeHandle n;
ros::Subscriber sub = n.subscribe("ardrone/navdata",Navdata,ReceiveData);
ros::spin();
return 0;
}
↧
Jenkins: Couldn't find any revision to build
My project complies just file, and I am expecting ROS to generate my docs, but I keep receiving a failure!
The console log located here:
http://jenkins.ros.org/job/devel-hydro-ar_sys/61/console
What shall I do?
↧
seperate build and install target machines
Hi,
I am new to ROS community. I have dedicated build server for all ROS packages. Once a package is successfully build I want to transfer only package binaries to target machine.
The target machine has ROS installed. Currently I am following approach.
* catkin_make -install -DCMAKE_INSTALL_PREFIX package_name
* compress the install directory
* transfer and decompress the ROS package
* Update ROS_PACKAGE_PATH on target and
* rosrun pacakge_name executable
However ROS is failing to locate the package.
I am guessing I need to update the scripts setup scripts generated in build process. However, these scripts have hardcoded values of build project path so cannot directly copy paste.
I even tried to replace catkin workspace directory path with installed path on target machine. Still rosrun cannot find the package.
Can anyone please guide me in this regard?
I am using ROS 1.11.8 on Ubuntu 14.04
↧
↧
Problem installing uvc_cam on ARM/Hydro
Trying to do a uvc_cam install on a Panda Board under hydro following the Ros By Example instructions. I get 55 successes and one failure. the Package path is correct and roscd finds the correct source directory in ros_workspace. I did call rosdep update and tried again with the same failure message.
I am guessing I am missing a dependency, but not sure which.
Here is the build log:
-- Configuring incomplete, errors occurred!
make: *** [all] Error 1
team751@team75-pb:~/.ros/rosmake/rosmake_output-20140502-151735/uvc_cam$ more build_ou tput.log
mkdir -p bin
cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=/opt/ros/hydro/share/ros/core/rosbuild/
rostoolchain.cmake ..
[rosbuild] Building package uvc_cam
Failed to invoke /opt/ros/hydro/bin/rospack deps-manifests uvc_cam
[rospack] Error: package/stack 'uvc_cam' depends on non-existent package 'driver_base'
and rosdep claims that it is not a system dependency. Check the ROS_PACKAGE_PATH or t
ry calling 'rosdep update'
CMake Error at /opt/ros/hydro/share/ros/core/rosbuild/public.cmake:129 (message):
Failed to invoke rospack to get compile flags for package 'uvc_cam'. Look
above for errors from rospack itself. Aborting. Please fix the broken
dependency!
Call Stack (most recent call first):
/opt/ros/hydro/share/ros/core/rosbuild/public.cmake:203 (rosbuild_invoke_rospack)
CMakeLists.txt:12 (rosbuild_init)
-- Configuring incomplete, errors occurred!
make: *** [all] Error 1
↧
Indigo ARM wet build on Beaglebone Black
I have gotten fairly far along in building a Ubuntu 14.04 Indigo on a beaglebone Black and the install went through the 'robot' rosdep install http://wiki.ros.org/indigo/Installation/Source.
As a matter of fact I see this:
ubuntu@arm:~/ros_catkin_ws/src/common_msgs/sensor_msgs/msg$ ls
CameraInfo.msg JoyFeedback.msg PointCloud.msg
ChannelFloat32.msg JoyFeedbackArray.msg PointCloud2.msg
CompressedImage.msg LaserEcho.msg PointField.msg
FluidPressure.msg LaserScan.msg Range.msg
Illuminance.msg MagneticField.msg RegionOfInterest.msg
Image.msg MultiDOFJointState.msg RelativeHumidity.msg
Imu.msg MultiEchoLaserScan.msg Temperature.msg
JointState.msg NavSatFix.msg TimeReference.msg
Joy.msg NavSatStatus.msg
I see this after installing ros_arduino_bridge and rebuilding via rosdep.
ubuntu@arm:~$ locate sensor_msgs|grep Range
/home/ubuntu/ros_catkin_ws/src/common_msgs/sensor_msgs/msg/Range.msg
/home/ubuntu/ros_catkin_ws/src/genmsg/test/files/sensor_msgs/msg/Range.msg
so it isn't anywhere in the executable path.
Here is where it complains during launch:
/ros_arduino_python/arduino_sensors.py", line 24, in
from sensor_msgs.msg import Range
ImportError: No module named sensor_msgs.msg
so
rosdep install --from-paths src --ignore-src --rosdistro indigo -y
gives one error message:
Reading state information... Done
E: Unable to locate package collada-dom-dev
ERROR: the following rosdeps failed to install
apt: command [sudo apt-get install -y collada-dom-dev] failed
after a apt-get and rosdep update the same error occurs.
Not a major or urgent issue for me, just trying to learn how things work by kicking the tires.
↧
Understanding the catkin, CMakeList, setup.py build flow in Python
I'm running Hydro on a Beaglebone Black (since there are no Debian builds for the embedded platform I hacked together my own, the details of which you can find [here](https://raw.githubusercontent.com/surveycorps/c_apro/master/install_scripts/ros_install_debian.sh) for reference).
I've been trying to build a simple Python script which publishes IMU data from an I2C interface and uses the the sensor_msgs and geometry_msgs libraries. Currently my project structure is as followed:
imuraw_gy88 0.0.1
This package reads raw {accelero/gryo/magno}meter data from the GY88 and publishes it name BSD name catkin rospy sensor_msgs geometry_msgs std_msgs rospy sensor_msgs geometry_msgs std_msgs
**CMakeList.txt**
## I stripped all comments from this one for readability
cmake_minimum_required(VERSION 2.8.3)
project(imuraw_gy88)
find_package(catkin REQUIRED COMPONENTS
rospy sensor_msgs geometry_msgs
)
catkin_python_setup()
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES imuraw_gy88
CATKIN_DEPENDS rospy sensor_msgs geometry_msgs
# DEPENDS system_lib
)
include_directories(
${catkin_INCLUDE_DIRS}
)
install(PROGRAMS
imuraw_gy88.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
**setup.py**
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
d = generate_distutils_setup(
packages=['imuraw_gy88'],
package_dir={'': 'src'}
)
setup(**d)
**myscript.py (imuraw_gy88.py)**
""" Only including the header for this example as all the other code is application specific """
import rospy
import sensor_msgs.msg # IMU data type
from std_msgs.msg import Header # Header to contain timestamp information
from geometry_msgs.msg import Vector3 # Standard Vector form for ROS
In its current state, using
~/ros_catkin_ws/src/mypkg |-- myscript.py |-- package.xml |-- CMakeList.txt |-- setup.py +-- src +-- mypkg +-- myscript.pyIn my actual code mypkg is named imuraw_gy88. **package.xml**
catkin_make_isolated --install --pkg mypkg
does cause my package to build. However, what I'm lacking is an understand of whats going on exactly.
**Questions**
- There appears to be some redundancy
with setup.py. What is it doing? What
is it responsible for?
- Does package.xml actually help the
compiler understand the dependencies?
Or is it just there for
documentation?
- Why does the Python bits of this need
to be run through catkin_make? In
particular, how does CMakeList tell
Python how to link up dependencies to
other packages?
- What is the correct project structure
and workflow for using catkin +
Python in ROS?
I would greatly appreciate any guide on how exactly this build system works!
Thank you for your time. :)
↧
Install ROS from source Ubuntu 14.04
Hi to everyone,
I am quite new with ROS and in the community.
I am trying to install ROS Indigo from source as described here :
http://wiki.ros.org/indigo/Installation/Source
But I arrive until the step 2.1.3 Building the catkin workspace and I am stuck with the following problem:
==> Processing catkin package: 'rospack'
==> Building with env: '/home/fschiano/ros_matlab_ws/install_isolated/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/fschiano/ros_matlab_ws/build_isolated/rospack'
==> make -j4 -l4 in '/home/fschiano/ros_matlab_ws/build_isolated/rospack'
[ 66%] Built target rospack
Linking CXX executable /home/fschiano/ros_matlab_ws/devel_isolated/rospack/bin/rospack
Linking CXX executable /home/fschiano/ros_matlab_ws/devel_isolated/rospack/bin/rosstack
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::detail::current_path(boost::system::error_code*)'
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::path::m_append_separator_if_needed()'
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::detail::directory_iterator_increment(boost::filesystem3::directory_iterator&, boost::system::error_code*)'
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::detail::directory_iterator_construct(boost::filesystem3::directory_iterator&, boost::filesystem3::path const&, boost::system::error_code*)'
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::detail::create_directory(boost::filesystem3::path const&, boost::system::error_code*)'
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::detail::dir_itr_close(void*&, void*&)'
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::path::filename() const'
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::path::operator/=(boost::filesystem3::path const&)'
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::path::parent_path() const'
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::path::m_erase_redundant_separator(unsigned long)'
collect2: error: ld returned 1 exit status
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::detail::current_path(boost::system::error_code*)'
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::path::m_append_separator_if_needed()'
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::detail::directory_iterator_increment(boost::filesystem3::directory_iterator&, boost::system::error_code*)'
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::detail::directory_iterator_construct(boost::filesystem3::directory_iterator&, boost::filesystem3::path const&, boost::system::error_code*)'
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::detail::create_directory(boost::filesystem3::path const&, boost::system::error_code*)'
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::detailmake[2]: ::dir_itr_close(void*** [/home/fschiano/ros_matlab_ws/devel_isolated/rospack/bin/rosstack] Error 1*&,
void*&)'
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::path::filename() const'
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'
/home/fschianomake[1]: /ros_matlab_ws/devel_isolated/*** [CMakeFiles/rosstackexe.dir/all] Error 2rospack/lib/librospack.so
: undefined reference to `boost::filesystem3::path::operator/=(boost::filesystem3:make[1]: :path*** Waiting for unfinished jobs....
const&)'
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::path::parent_path() const'
/home/fschiano/ros_matlab_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::filesystem3::path::m_erase_redundant_separator(unsigned long)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/fschiano/ros_matlab_ws/devel_isolated/rospack/bin/rospack] Error 1
make[1]: *** [CMakeFiles/rospackexe.dir/all] Error 2
make: *** [all] Error 2<== Failed to process package 'rospack':
Command '/home/fschiano/ros_matlab_ws/install_isolated/env.sh make -j4 -l4' returned non-zero exit status 2
Reproduce this error by running:
==> cd /home/fschiano/ros_matlab_ws/build_isolated/rospack && /home/fschiano/ros_matlab_ws/install_isolated/env.sh make -j4 -l4
I don't know what to do, is someone able to point me in the right direction?
thanks a lot.
↧
↧
Error with boost while building tf package in catkin ws
I'm building the imu_filter_madgwick package from the [imu_tools](https://github.com/ccny-ros-pkg/imu_tools) package using the command )’:
/root/ros_catkin_test_ws/src/geometry/tf/src/tf.cpp:575:60: error: could not convert ‘tf2::BufferCore::_addTransformsChangedListener(boost::function)(boost::function((*(const self_type*)(& callback))))’ from ‘boost::signals2::connection’ to ‘boost::signals::connection’
/root/ros_catkin_test_ws/src/geometry/tf/src/tf.cpp: In member function ‘void tf::Transformer::removeTransformsChangedListener(boost::signals::connection)’:
/root/ros_catkin_test_ws/src/geometry/tf/src/tf.cpp:580:49: error: no matching function for call to ‘tf2_ros::Buffer::_removeTransformsChangedListener(boost::signals::connection&)’
/root/ros_catkin_test_ws/src/geometry/tf/src/tf.cpp:580:49: note: candidate is:
/root/ros_catkin_ws/install_isolated/include/tf2/buffer_core.h:257:8: note: void tf2::BufferCore::_removeTransformsChangedListener(boost::signals2::connection)
/root/ros_catkin_ws/install_isolated/include/tf2/buffer_core.h:257:8: note: no known conversion for argument 1 from ‘boost::signals::connection’ to ‘boost::signals2::connection’
make[2]: *** [CMakeFiles/pytf_py.dir/src/tf.cpp.o] Error 1
make[1]: *** [CMakeFiles/pytf_py.dir/all] Error 2
make: *** [all] Error 2
**Is there anyway to resolve this?** I'm using a catkin workspace environment on a Debian OS. Please let me know if any additional logs are required to debug this. Thank you in advance for your help!
catkin_make_isolated --install --from-pkg-with-deps imu_filter_madgwick
. All goes well in the installation until it hits the second to last package in the package build topology, which is tf. I receive the following CMAKE error:
/root/ros_catkin_test_ws/src/geometry/tf/src/tf.cpp: In member function ‘boost::signals::connection tf::Transformer::addTransformsChangedListener(boost::function↧
Can't build the face recognition package
Hi,
I got face recognition tutorial on ros wiki page:
www.ros.org/wiki/face_recognition
but i can't build it. I tried to build the workspace using catkin_make and rosmake.
I use the command "catkin-make" in the face_recognition workaspace but it already contains a CMakeLists.txt so the command doesn't work. I also tried the "rosmake face_recognition" but I have this error "ERROR: No arguments could be parsed into valid package or stack names." despite the fact that there is a "stack.xml" file in the folder.
Can somebody help me please?
Thank you
↧
catkin build fail.
sir
I tried to build the package which is created at desktop workspace. i follow the following commands
1) mkdir -p /home/chhonkar/Desktop/imagews/src
2) cd /home/chhonkar/Desktop/imagews/src/
3) catkin_create_pkg pack1 roscpp std_msgs rospy
4) cd .. (reached to /home/chhonkar/Desktop/imagews)
5) catkin_make
But this create problem. build process is not successful. i got some error. here i am copy few part of error.
RuntimeError: Multiple packages found with the same name "ardrone_autonomy":
- ardrone_autonomy
- share/ardrone_autonomy
CMake Error at /opt/ros/indigo/share/catkin/cmake/safe_execute_process.cmake:11 (message):
execute_process(/home/chhonkar/Desktop/imageproc/build/catkin_generated/env_cached.sh
"/usr/bin/python" "/usr/bin/empy" "--raw-errors" "-F"
"/home/chhonkar/Desktop/imageproc/build/catkin_generated/order_packages.py"
"-o"
"/home/chhonkar/Desktop/imageproc/build/catkin_generated/order_packages.cmake"
"/opt/ros/indigo/share/catkin/cmake/em/order_packages.cmake.em") returned
error code 1
Call Stack (most recent call first):
/opt/ros/indigo/share/catkin/cmake/em_expand.cmake:25 (safe_execute_process)
/opt/ros/indigo/share/catkin/cmake/catkin_workspace.cmake:29 (em_expand)
CMakeLists.txt:63 (catkin_workspace)
-- Configuring incomplete, errors occurred!
See also "/home/chhonkar/Desktop/imageproc/build/CMakeFiles/CMakeOutput.log".
See also "/home/chhonkar/Desktop/imageproc/build/CMakeFiles/CMakeError.log".
↧