[Rock-dev] Problems with ROS-Bridge nav_msgs/OccupancyGrid
Janosch Machowinski
Janosch.Machowinski at dfki.de
Thu Sep 11 15:05:00 CEST 2014
Okay, I manged to work around
this issue, but the whole ros bridge seems
to be not functional.
For example, if I try to subscribe to /tf I get this error:
/home/coyote/rock1408/tools/orocos.rb/lib/orocos/ros/node.rb:267:in
`input_port': cannot find topic /tf as a subscription of node
/stereo_odometer (Orocos::NotFound)
If I can mange to subscribe to a topic, no sample
is displayed. I use this script :
require 'orocos'
include Orocos
Orocos.initialize
#this works, I can see all topics
puts(Orocos::ROS.name_service().ros_graph.topics)
ros_topic = Orocos::ROS.topic(ARGV.first)
reader = ros_topic.reader(:type => :buffer, :size => 10)
puts("Waiting for samples")
while(true)
sample = nil
while((sample = reader.read_new()) == nil)
sleep(0.1)
end
puts("Got sample #{sample}")
end
Greetings
Janosch
On 09/11/2014 11:15 AM, Janosch Machowinski wrote:
> Hey,
> I am trying to get an input port of the type
> nav_msgs/OccupancyGrid. For now I did :
>
> using_library "nav_msgs"
> using_library "envire"
> import_types_from "nav_msgs/OccupancyGrid.h"
> typekit.ros_mappings 'std/vector</envire/BinaryEvent>' =>
> '/nav_msgs/OccupancyGrid'
>
> and defined an input port
> input_port "rosOccupancyGrid", "/nav_msgs/OccupancyGrid"
>
> But orogen is complaining, it does not know about the type
> /nav_msgs/OccupancyGrid. Also no toROS/fromROS stub in
> the typekit folder is generated (there is no typkit folder at all...)
> Any ideas ?
> Greetings
> Janosch
>
> P.S: This is kind of urgent...
> _______________________________________________
> Rock-dev mailing list
> Rock-dev at dfki.de
> http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev
More information about the Rock-dev
mailing list