Module: ROS
- Defined in:
- lib/ros/ros.rb,
lib/ros/log.rb,
lib/ros/name.rb,
lib/ros/node.rb,
lib/ros/rate.rb,
lib/ros/time.rb,
lib/ros/topic.rb,
lib/ros/master.rb,
lib/ros/message.rb,
lib/ros/package.rb,
lib/ros/roscore.rb,
lib/ros/service.rb,
lib/ros/duration.rb,
lib/ros/publisher.rb,
lib/ros/subscriber.rb,
lib/ros/slave_proxy.rb,
lib/ros/master_proxy.rb,
lib/ros/xmlrpcserver.rb,
lib/ros/graph_manager.rb,
lib/ros/service_client.rb,
lib/ros/service_server.rb,
lib/ros/parameter_manager.rb,
lib/ros/parameter_subscriber.rb
Overview
ros/parameter_subscriber.rb
License: BSD
Copyright © 2012 Takashi Ogura <[email protected]>
Parameter Subscriber
callback object for paramUpdate
Defined Under Namespace
Modules: Name, TCPROS Classes: Duration, GraphManager, Log, Master, MasterProxy, Message, Node, Package, ParameterManager, ParameterSubscriber, Publisher, Rate, Service, ServiceClient, ServiceServer, SlaveProxy, Struct, Subscriber, Time, TimeValue, Topic, XMLRPCServer
Class Method Summary collapse
-
.load_manifest(package) ⇒ Object
load manifest and add all dependencies.
- .start_roscore ⇒ Object
Class Method Details
.load_manifest(package) ⇒ Object
load manifest and add all dependencies
141 142 143 |
# File 'lib/ros/package.rb', line 141 def self.load_manifest(package) ROS::Package.add_path_with_depend_packages(package) end |
.start_roscore ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/ros/roscore.rb', line 8 def self.start_roscore # master thread = Thread.new do ROS::Master.new.start end sleep 1 # rosout rosout_node = ROS::Node.new('/rosout', :nologger=>true) rosout_agg_publisher = rosout_node.advertise('/rosout_agg', Rosgraph_msgs::Log) rosout_node.subscribe('/rosout', Rosgraph_msgs::Log) do |msg| rosout_agg_publisher.publish(msg) end rosout_node.spin end |