Hi all,
I'm trying to compile rtt_ros_integration under Ubuntu 12.04. I have Ros Fuerte and I'm following the instructions reported here: http://www.ros.org/wiki/orocos_toolchain_ros
I alreay compiled the orocos_toolchain by specifyng the ORCOS_TARGET=xenomai.
However I have some problems building the rtt_rosnode. This is the error:
[ 94%] Building CXX object CMakeFiles/rtt_rosnode.dir/src/rtt_ros_service.o Linking CXX shared library ../lib/librtt_rosnode-xenomai.so CMakeFiles/rtt_rosnode.dir/src/ros_plugin.o: In function `loadRTTPlugin': ros_plugin.cpp:(.text+0x3c): undefined reference to `ros::isInitialized()' ros_plugin.cpp:(.text+0x78): undefined reference to `ros::init(int&, char**, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int)' ros_plugin.cpp:(.text+0x88): undefined reference to `ros::master::check()' ros_plugin.cpp:(.text+0x91): undefined reference to `ros::start()' ros_plugin.cpp:(.text+0xc2): undefined reference to `ros::shutdown()' ros_plugin.cpp:(.text+0xf6): undefined reference to `ros::AsyncSpinner::AsyncSpinner(unsigned int)' ros_plugin.cpp:(.text+0x12b): undefined reference to `ros::AsyncSpinner::start()' collect2: ld returned 1 exit status make[3]: *** [../lib/librtt_rosnode-xenomai.so] Error 1 make[3]: Leaving directory `/home/luca/Software/ros-stacks/orocos/rtt_ros_integration/rtt_rosnode/build' make[2]: *** [CMakeFiles/rtt_rosnode.dir/all] Error 2 make[2]: Leaving directory `/home/luca/Software/ros-stacks/orocos/rtt_ros_integration/rtt_rosnode/build' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/luca/Software/ros-stacks/orocos/rtt_ros_integration/rtt_rosnode/build'
How can I fix it?
Thanks in advance.
rtt_rosnode files to compile with OROCOS_TARGET=xenomai
On Thu, Feb 14, 2013 at 11:45 AM, <luca [dot] gherardi [..] ...> wrote:
> Hi all,
>
> I'm trying to compile rtt_ros_integration under Ubuntu 12.04.
> I have Ros Fuerte and I'm following the instructions reported here:
> http://www.ros.org/wiki/orocos_toolchain_ros
>
> I alreay compiled the orocos_toolchain by specifyng the ORCOS_TARGET=xenomai.
>
> However I have some problems building the rtt_rosnode. This is the error:
>
>
> [ 94%] Building CXX object CMakeFiles/rtt_rosnode.dir/src/rtt_ros_service.o
> Linking CXX shared library ../lib/librtt_rosnode-xenomai.so
> CMakeFiles/rtt_rosnode.dir/src/ros_plugin.o: In function `loadRTTPlugin':
> ros_plugin.cpp:(.text+0x3c): undefined reference to `ros::isInitialized()'
> ros_plugin.cpp:(.text+0x78): undefined reference to `ros::init(int&,
> char**, std::basic_string const&, unsigned int)'
> ros_plugin.cpp:(.text+0x88): undefined reference to `ros::master::check()'
> ros_plugin.cpp:(.text+0x91): undefined reference to `ros::start()'
> ros_plugin.cpp:(.text+0xc2): undefined reference to `ros::shutdown()'
> ros_plugin.cpp:(.text+0xf6): undefined reference to
> `ros::AsyncSpinner::AsyncSpinner(unsigned int)'
> ros_plugin.cpp:(.text+0x12b): undefined reference to
> `ros::AsyncSpinner::start()'
> collect2: ld returned 1 exit status
> make[3]: *** [../lib/librtt_rosnode-xenomai.so] Error 1
> make[3]: Leaving directory
> `/home/luca/Software/ros-stacks/orocos/rtt_ros_integration/rtt_rosnode/build'
> make[2]: *** [CMakeFiles/rtt_rosnode.dir/all] Error 2
> make[2]: Leaving directory
> `/home/luca/Software/ros-stacks/orocos/rtt_ros_integration/rtt_rosnode/build'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> `/home/luca/Software/ros-stacks/orocos/rtt_ros_integration/rtt_rosnode/build'
>
>
> How can I fix it?
I have pushed the fix on the toolchain-2.6 branch and created new
releases for this issue.
In the meantime, you can do apt-get install libxml-xpath-perl.
Peter
rtt_rosnode files to compile with OROCOS_TARGET=xenomai
Hi all,
I'm trying to compile rtt_ros_integration under Ubuntu 12.04. I have Ros
Fuerte and I'm following the instructions reported here:
http://www.ros.org/wiki/orocos_toolchain_ros I alreay compiled the
orocos_toolchain, by specifyng the ORCOS_TARGET=xenomai. I've also
compiled rtt_ros_integration rtt_ros_comm rtt_common_msgs. However I have
some problems building the rtt_geometry (rtt_tf). This is the error:
[ 75%] Building CXX object
std::basic_string<char, std::char_traits
const&, ros::Time const&)':
std::basic_string<char, std::char_traits
const&, ros::Time const&, tf::StampedTransform&) const'
std::basic_string<char, std::char_traits
const&)':
std::basic_string<char, std::char_traits
const&, ros::Time&, std::basic_string<char, std::char_traits
std::allocator<char> >*) const'
std::basic_string<char, std::char_traits
const&, ros::Time const&, tf::StampedTransform&) const'
> const&)':
std::allocator<char> > const&, std::basic_string<char,
rtt_tf-component.cpp:(.text+0xb9f): undefined reference to
std::allocator<char> > const&, std::basic_string<char,
CMakeFiles/rtt_tf.dir/rtt_tf-component.o: In function
const&)'
std::allocator<char> > const&)':
CMakeFiles/tests/lookup_test.dir/tests/lookup_test.o
CMakeFiles/rtt_tf.dir/rtt_tf-component.o: In function
`rtt_tf::RTT_TF::lookupTransformAtTimeService(std::basic_string<char,
std::char_traits
rtt_tf-component.cpp:(.text+0x9e5): undefined reference to
`tf::Transformer::lookupTransform(std::basic_string<char,
std::char_traits
CMakeFiles/rtt_tf.dir/rtt_tf-component.o: In function
`rtt_tf::RTT_TF::lookupTransformService(std::basic_string<char,
std::char_traits
rtt_tf-component.cpp:(.text+0xa9e): undefined reference to
`tf::Transformer::getLatestCommonTime(std::basic_string<char,
std::char_traits
rtt_tf-component.cpp:(.text+0xab8): undefined reference to
`tf::Transformer::lookupTransform(std::basic_string<char,
std::char_traits
CMakeFiles/rtt_tf.dir/rtt_tf-component.o: In function
`rtt_tf::RTT_TF::broadcastTransformService(geometry_msgs::TransformStamped_<std::allocator
rtt_tf-component.cpp:(.text+0xb74): undefined reference to
`tf::resolve(std::basic_string<char, std::char_traits
std::char_traits
`tf::resolve(std::basic_string<char, std::char_traits
std::char_traits
`rtt_tf::RTT_TF::updateHook()':
rtt_tf-component.cpp:(.text+0x1233): undefined reference to
`tf::Transformer::setTransform(tf::StampedTransform const&,
std::basic_string<char, std::char_traits
CMakeFiles/rtt_tf.dir/rtt_tf-component.o: In function
`rtt_tf::RTT_TF::RTT_TF(std::basic_string<char, std::char_traits
rtt_tf-component.cpp:(.text+0x145a): undefined reference to
`tf::Transformer::DEFAULT_CACHE_TIME'
rtt_tf-component.cpp:(.text+0x149c): undefined reference to
`tf::Transformer::Transformer(bool, ros::Duration)'
rtt_tf-component.cpp:(.text+0x27f8): undefined reference to
`tf::Transformer::~Transformer()'
CMakeFiles/rtt_tf.dir/rtt_tf-component.o: In function
`rtt_tf::RTT_TF::~RTT_TF()':
rtt_tf-component.cpp:(.text._ZN6rtt_tf6RTT_TFD2Ev[_ZN6rtt_tf6RTT_TFD5Ev]+0x6d):
undefined reference to `tf::Transformer::~Transformer()'
rtt_tf-component.cpp:(.text._ZN6rtt_tf6RTT_TFD2Ev[_ZN6rtt_tf6RTT_TFD5Ev]+0xcb):
undefined reference to `tf::Transformer::~Transformer()'
CMakeFiles/rtt_tf.dir/rtt_tf-component.o:(.data.rel.ro._ZTIN6rtt_tf6RTT_TFE[typeinfo
for rtt_tf::RTT_TF]+0x18): undefined reference to `typeinfo for
tf::Transformer'
CMakeFiles/rtt_tf.dir/rtt_tf-component.o:(.data.rel.ro._ZTVN6rtt_tf6RTT_TFE[vtable
for rtt_tf::RTT_TF]+0xd8): undefined reference to `tf::Transformer::ok()
const'
collect2: ld returned 1 exit status
make[3]: *** [librtt_tf-xenomai.so] Error 1
make[3]: Leaving directory
`/home/hwadong/cotesys-lwr4+/LWR_ROS_RT_Workspace/orocos/rtt_geometry/rtt_tf/build'
make[2]: *** [CMakeFiles/rtt_tf.dir/all] Error 2
Linking CXX executable tests/lookup_test-xenomai
/usr/bin/ld: cannot open output file tests/lookup_test-xenomai: No such
file or directory
collect2: ld returned 1 exit status
make[3]: *** [tests/lookup_test-xenomai] Error 1
make[3]: Leaving directory
`/home/hwadong/cotesys-lwr4+/LWR_ROS_RT_Workspace/orocos/rtt_geometry/rtt_tf/build'
make[2]: *** [CMakeFiles/tests/lookup_test.dir/all] Error 2
make[2]: Leaving directory
`/home/hwadong/cotesys-lwr4+/LWR_ROS_RT_Workspace/orocos/rtt_geometry/rtt_tf/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/hwadong/cotesys-lwr4+/LWR_ROS_RT_Workspace/orocos/rtt_geometry/rtt_tf/build'
How can I fix it?
Matteo Saveriano
Orocos, xenomai ros fuerte
Hi all,
I'm trying to compile rtt_ros_integration under Ubuntu 12.04. I have Ros
Fuerte and I'm following the instructions reported here:
http://www.ros.org/wiki/orocos_toolchain_ros I alreay compiled the
orocos_toolchain, by specifyng the ORCOS_TARGET=xenomai. I've also
compiled rtt_ros_integration rtt_ros_comm rtt_common_msgs. However I have
some problems building the rtt_geometry (rtt_tf). This is the error:
[ 75%] Building CXX object
std::basic_string<char, std::char_traits
const&, ros::Time const&)':
std::basic_string<char, std::char_traits
const&, ros::Time const&, tf::StampedTransform&) const'
std::basic_string<char, std::char_traits
const&)':
std::basic_string<char, std::char_traits
const&, ros::Time&, std::basic_string<char, std::char_traits
std::allocator<char> >*) const'
std::basic_string<char, std::char_traits
const&, ros::Time const&, tf::StampedTransform&) const'
> const&)':
std::allocator<char> > const&, std::basic_string<char,
rtt_tf-component.cpp:(.text+0xb9f): undefined reference to
std::allocator<char> > const&, std::basic_string<char,
CMakeFiles/rtt_tf.dir/rtt_tf-component.o: In function
const&)'
std::allocator<char> > const&)':
CMakeFiles/tests/lookup_test.dir/tests/lookup_test.o
CMakeFiles/rtt_tf.dir/rtt_tf-component.o: In function
`rtt_tf::RTT_TF::lookupTransformAtTimeService(std::basic_string<char,
std::char_traits
rtt_tf-component.cpp:(.text+0x9e5): undefined reference to
`tf::Transformer::lookupTransform(std::basic_string<char,
std::char_traits
CMakeFiles/rtt_tf.dir/rtt_tf-component.o: In function
`rtt_tf::RTT_TF::lookupTransformService(std::basic_string<char,
std::char_traits
rtt_tf-component.cpp:(.text+0xa9e): undefined reference to
`tf::Transformer::getLatestCommonTime(std::basic_string<char,
std::char_traits
rtt_tf-component.cpp:(.text+0xab8): undefined reference to
`tf::Transformer::lookupTransform(std::basic_string<char,
std::char_traits
CMakeFiles/rtt_tf.dir/rtt_tf-component.o: In function
`rtt_tf::RTT_TF::broadcastTransformService(geometry_msgs::TransformStamped_<std::allocator
rtt_tf-component.cpp:(.text+0xb74): undefined reference to
`tf::resolve(std::basic_string<char, std::char_traits
std::char_traits
`tf::resolve(std::basic_string<char, std::char_traits
std::char_traits
`rtt_tf::RTT_TF::updateHook()':
rtt_tf-component.cpp:(.text+0x1233): undefined reference to
`tf::Transformer::setTransform(tf::StampedTransform const&,
std::basic_string<char, std::char_traits
CMakeFiles/rtt_tf.dir/rtt_tf-component.o: In function
`rtt_tf::RTT_TF::RTT_TF(std::basic_string<char, std::char_traits
rtt_tf-component.cpp:(.text+0x145a): undefined reference to
`tf::Transformer::DEFAULT_CACHE_TIME'
rtt_tf-component.cpp:(.text+0x149c): undefined reference to
`tf::Transformer::Transformer(bool, ros::Duration)'
rtt_tf-component.cpp:(.text+0x27f8): undefined reference to
`tf::Transformer::~Transformer()'
CMakeFiles/rtt_tf.dir/rtt_tf-component.o: In function
`rtt_tf::RTT_TF::~RTT_TF()':
rtt_tf-component.cpp:(.text._ZN6rtt_tf6RTT_TFD2Ev[_ZN6rtt_tf6RTT_TFD5Ev]+0x6d):
undefined reference to `tf::Transformer::~Transformer()'
rtt_tf-component.cpp:(.text._ZN6rtt_tf6RTT_TFD2Ev[_ZN6rtt_tf6RTT_TFD5Ev]+0xcb):
undefined reference to `tf::Transformer::~Transformer()'
CMakeFiles/rtt_tf.dir/rtt_tf-component.o:(.data.rel.ro._ZTIN6rtt_tf6RTT_TFE[typeinfo
for rtt_tf::RTT_TF]+0x18): undefined reference to `typeinfo for
tf::Transformer'
CMakeFiles/rtt_tf.dir/rtt_tf-component.o:(.data.rel.ro._ZTVN6rtt_tf6RTT_TFE[vtable
for rtt_tf::RTT_TF]+0xd8): undefined reference to `tf::Transformer::ok()
const'
collect2: ld returned 1 exit status
make[3]: *** [librtt_tf-xenomai.so] Error 1
make[3]: Leaving directory
`/home/hwadong/cotesys-lwr4+/LWR_ROS_RT_Workspace/orocos/rtt_geometry/rtt_tf/build'
make[2]: *** [CMakeFiles/rtt_tf.dir/all] Error 2
Linking CXX executable tests/lookup_test-xenomai
/usr/bin/ld: cannot open output file tests/lookup_test-xenomai: No such
file or directory
collect2: ld returned 1 exit status
make[3]: *** [tests/lookup_test-xenomai] Error 1
make[3]: Leaving directory
`/home/hwadong/cotesys-lwr4+/LWR_ROS_RT_Workspace/orocos/rtt_geometry/rtt_tf/build'
make[2]: *** [CMakeFiles/tests/lookup_test.dir/all] Error 2
make[2]: Leaving directory
`/home/hwadong/cotesys-lwr4+/LWR_ROS_RT_Workspace/orocos/rtt_geometry/rtt_tf/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/hwadong/cotesys-lwr4+/LWR_ROS_RT_Workspace/orocos/rtt_geometry/rtt_tf/build'
How can I fix it?
Matteo Saveriano
rtt_rosnode files to compile with OROCOS_TARGET=xenomai
Thanks,
Now it compiles rttros_node. However there is a similar problem in building rtt_tf.
I already tried to checkout the fuerte branch, how can I fix it?
Thanks again, Luca