Hi,
I would like to build an Orocos component with a ROS sensor_msgs::LaserScan
message,
[ https://gist.github.com/1005998#file_hello_robot_laser.cpp ]
when I call make to build this test, I get the following error:
[...]
[UseOrocos] Linking all targets with libraries from package
'rtt_ros_integration'.
-- checking for one of the modules
'rtt_ros_integration_std_msgs;rtt_ros_integration_std_msgs-gnulinux'
-- checking for one of the modules
'rtt_ros_integration_geometry_msgs;rtt_ros_integration_geometry_msgs-gnulinux'
-- checking for one of the modules 'rtt_ros_param;rtt_ros_param-gnulinux'
[...]
ros/orocos_toolchain_ros/rtt_ros_integration_example/src/HelloRobotLaser.cpp:5:35:
error: sensor_msgs/LaserScan.h: No such file or directory
[...]
it seems that the package 'rtt_ros_integration' doesn't depends on
'rtt_ros_integration_geometry_msgs', maybe it should?
Cheers,
Pierrick
orocos_toolchain_ros: sensor_msgs/LaserScan.h
On Fri, Jun 3, 2011 at 10:04 AM, Pierrick Koch <pierrick [dot] koch [..] ...> wrote:
> Hi,
> I would like to build an Orocos component with a ROS sensor_msgs::LaserScan
> message,
> [ https://gist.github.com/1005998#file_hello_robot_laser.cpp ]
> when I call make to build this test, I get the following error:
> [...]
> [UseOrocos] Linking all targets with libraries from package
> 'rtt_ros_integration'.
> -- checking for one of the modules
> 'rtt_ros_integration_std_msgs;rtt_ros_integration_std_msgs-gnulinux'
> -- checking for one of the modules
> 'rtt_ros_integration_geometry_msgs;rtt_ros_integration_geometry_msgs-gnulinux'
> -- checking for one of the modules 'rtt_ros_param;rtt_ros_param-gnulinux'
> [...]
> ros/orocos_toolchain_ros/rtt_ros_integration_example/src/HelloRobotLaser.cpp:5:35:
> error: sensor_msgs/LaserScan.h: No such file or directory
> [...]
> it seems that the package 'rtt_ros_integration' doesn't depends on
> 'rtt_ros_integration_geometry_msgs', maybe it should?
No it's the other way around. Your package depends on the
rtt_ros_integration_geometry_msgs.
It depends on geometry_msgs where the missing header should be. Did you
rosmake rtt_ros_integration_geometry_msgs ?
By the way, you will have much faster compilation times in 0.4.0 once
it's released if you include
the <geometry_msgs/typekit/Twist.h> file which will become part of the
rtt_ros_integration_geometry_msgs package
Peter
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
orocos_toolchain_ros: sensor_msgs/LaserScan.h
..ah, yes I though I did add the dependence in my manifest...
anyway, Thanks! it works!
https://gist.github.com/1005998
<https://gist.github.com/1005998>which does the same than:
https://github.com/pierriko/proteus/blob/master/test_cmd.py
<https://github.com/pierriko/proteus/blob/master/test_cmd.py>Cheers,
Pierrick
On Fri, Jun 3, 2011 at 4:36 PM, Peter Soetens <peter [..] ...>wrote:
> On Fri, Jun 3, 2011 at 10:04 AM, Pierrick Koch <pierrick [dot] koch [..] ...>
> wrote:
> > Hi,
> > I would like to build an Orocos component with a ROS
> sensor_msgs::LaserScan
> > message,
> > [ https://gist.github.com/1005998#file_hello_robot_laser.cpp ]
> > when I call make to build this test, I get the following error:
> > [...]
> > [UseOrocos] Linking all targets with libraries from package
> > 'rtt_ros_integration'.
> > -- checking for one of the modules
> > 'rtt_ros_integration_std_msgs;rtt_ros_integration_std_msgs-gnulinux'
> > -- checking for one of the modules
> >
> 'rtt_ros_integration_geometry_msgs;rtt_ros_integration_geometry_msgs-gnulinux'
> > -- checking for one of the modules 'rtt_ros_param;rtt_ros_param-gnulinux'
> > [...]
> >
> ros/orocos_toolchain_ros/rtt_ros_integration_example/src/HelloRobotLaser.cpp:5:35:
> > error: sensor_msgs/LaserScan.h: No such file or directory
> > [...]
> > it seems that the package 'rtt_ros_integration' doesn't depends on
> > 'rtt_ros_integration_geometry_msgs', maybe it should?
>
> No it's the other way around. Your package depends on the
> rtt_ros_integration_geometry_msgs.
> It depends on geometry_msgs where the missing header should be. Did you
> rosmake rtt_ros_integration_geometry_msgs ?
>
> By the way, you will have much faster compilation times in 0.4.0 once
> it's released if you include
> the <geometry_msgs/typekit/Twist.h> file which will become part of the
> rtt_ros_integration_geometry_msgs package
>
> Peter
>