module OroGen::Gen::RTT_CPP::TaskDeploymentGeneration
Public Instance Methods
generate_activity_setup()
click to toggle source
# File lib/orogen/gen/deployment.rb, line 7 def generate_activity_setup if @activity_setup @activity_setup.call else result = <<-EOD #{activity_type.class_name}* activity_#{name} = new #{activity_type.class_name}( #{rtt_scheduler}, #{rtt_priority}, task_#{name}->engine(), "#{name}"); EOD end end
method_missing(*args, &block)
click to toggle source
Calls superclass method
# File lib/orogen/gen/deployment.rb, line 46 def method_missing(*args, &block) if project.deffile && File.file?(project.deffile) OroGen.check_for_stray_dots(project.deffile, name, args) end super end
rtt_priority()
click to toggle source
Returns the Orocos value for this task's priority
# File lib/orogen/gen/deployment.rb, line 35 def rtt_priority case @priority when :highest 'RTT::os::HighestPriority' when :lowest 'RTT::os::LowestPriority' when Integer @priority end end
rtt_scheduler()
click to toggle source
Returns the scheduler constant name for this task's scheduler class. Call realtime and non_realtime to change the task scheduling class
# File lib/orogen/gen/deployment.rb, line 28 def rtt_scheduler if @realtime then 'ORO_SCHED_RT' else 'ORO_SCHED_OTHER' end end
to_deployer_xml()
click to toggle source
# File lib/orogen/gen/deployment.rb, line 21 def to_deployer_xml @activity_xml.call end