-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR - ROSService::import("rtt_std_msgs") #131
Comments
do you solve it The find_package macro for Orocos-RTT requirescmake >= 2.8cmake_minimum_required(VERSION 2.8) This creates a standard cmake project. You may extend this file withany cmake macro you see fit.project(rtt_robot_state_pub) Use 'source orocos_toolchain/env.sh' if the command below fails:find_package(OROCOS-RTT QUIET)if (NOT OROCOS-RTT_FOUND)message (FATAL_ERROR "\nCould not find Orocos. Please use the shell command\n 'source orocos_toolchain/env.sh' and then run cmake again.")endif()find_package(Eigen3 REQUIRED COMPONENTS Core Dense) Defines the orocos_* cmake macros. See that file for additionaldocumentation.include(${OROCOS-RTT_USE_FILE_PATH}/UseOROCOS-RTT.cmake) find_package(catkin REQUIRED COMPONENTS Defines the orocos_* cmake macros. See that file for additionaldocumentation.include( ${OROCOS-RTT_USE_FILE_PATH}/UseOROCOS-RTT.cmake ) Rest of the configuration is in src/#add_subdirectory( src ) orocos_component(${PROJECT_NAME} src/rtt_robot_state_pub-component.cpp) # ...you may add multiple source files orocos_install_headers(DIRECTORY include/${PROJECT_NAME}) install(DIRECTORY launch DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}) Generates and installs our package. Must be the last statement suchthat it can pick up all above settings.package : rtt_robot_state_pub 0.0.0 The rtt_robot_state_pub packageTODO <buildtool_depend>catkin</buildtool_depend> <build_export_depend>geometry_msgs</build_export_depend> <exec_depend>rtt</exec_depend> |
I install the rtt_ros_integration in a x86 machine with Ubuntu and Xenomai 3, using the normal steps in: https://github.com/orocos/rtt_ros_integration.
The rtt package from orocos_toolchain used was taked from this branch: https://github.com/orocos-toolchain/rtt/tree/ahoarau-xenomai3-support-v2.
My workspace is in: /home/robo/workspaces/catkin_ws.
And OROCOS_TARGET=xenomai.
First, was created a package for application:
Then, I create a rtt_ros application in C++. The code "rtt_ros_example" is given below:
Basically, the application try import the "rtt_std_msgs" package dinamically through "rtt_ros" service and connect ports to ros topics.
The xml package is that:
And de CMakeLists.txt is:
So, the configuration scripts was executed:
$ source underlay/devel/setup.bash
Then, was trying a first attempt to build the package:
Now, the ros Master is executed:
$ roscore
Then the application is executed:
sudo ./devel/lib/rtt_ros_example/rtt_ros_example-xenomai
However, the follow output is generated:
So, the executable cant load dinamically the "rtt_std_msgs" package. The ROS_PACKAGE_PATH, contains:
$ echo $ROS_PACKAGE_PATH
/home/robo/workspaces/catkin_ws/underlay/src:/home/robo/workspaces/catkin_ws/underlay_isolated/install_isolated/share:/opt/ros/kinetic/share
Any advice?
The text was updated successfully, but these errors were encountered: