-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathorogen.rb
57 lines (49 loc) · 1.54 KB
/
orogen.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# frozen_string_literal: true
begin
require "typelib"
rescue LoadError
STDERR.puts "Cannot require 'typelib'"
STDERR.puts "If you are using Rock, the 'typelib' package should have been installed automatically."
STDERR.puts "First, make sure that you have loaded autoproj's env.sh script before continuing"
STDERR.puts "Second, typelib should be installed in tools/typelib from the root of your Rock installation."
STDERR.puts "If it is not the case, report this to the rock developers. To workaround, run"
STDERR.puts " amake typelib"
STDERR.puts "and try again."
exit 1
end
require "utilrb/logger"
module OroGen
OROGEN_LIB_DIR = File.expand_path("orogen", File.dirname(__FILE__))
extend Logger::Root("OroGen", Logger::WARN)
module Spec
end
module Gen
module RTT_CPP
end
end
# Code-generation support for the different supported RTT transports
module TypekitMarshallers
extend Logger::Hierarchy
end
end
module Orocos
Spec = OroGen::Spec
Generation = OroGen::Gen::RTT_CPP
TypekitMarshallers = OroGen::TypekitMarshallers
end
require "utilrb/pkgconfig"
require "metaruby/dsls/doc"
require "orogen/typenames"
require "rexml/streamlistener"
require "rexml/document"
require "orogen/version"
require "orogen/warn_deprecated"
require "orogen/exceptions"
require "orogen/base"
require "orogen/check_for_stray_dots"
require "orogen/plugins"
require "orogen/loaders"
require "orogen/spec"
unless ENV["OROGEN_DISABLE_PLUGINS"] == "1"
OroGen.load_orogen_plugins
end