42 {
44 std::vector<std::shared_ptr<MessageConverter>> converter_list_;
45
48
50
51#ifdef RCLCPP__RCLCPP_HPP_
52 rclcpp::init(argc, argv);
53#endif
54
55 PluginManager::Instance()->LoadInstalledPlugins();
56
57 auto config_path =
60 AERROR <<
"parse ros bridge config failed!";
61 return 1;
62 }
63
64 for (int i = 0; i < bridge_conf.converter_size(); i++) {
65 auto converter =
70 <<
"Can not init converter " << bridge_conf.
converter(i).
type();
71 converter_list_.push_back(converter);
72 }
73
77 }
78
82 }
83
85#ifdef RCLCPP__RCLCPP_HPP_
86 rclcpp::shutdown();
87#endif
88
90 ProfilerStop();
91 }
92
94 HeapProfilerDump("Befor shutdown");
95 HeapProfilerStop();
96 }
97
98 return 0;
99}
const bool GetEnableHeapprofile() const
const std::string GetHeapProfileFilename() const
const bool GetEnableCpuprofile() const
const std::string GetProfileFilename() const
void ParseArgument(int argc, char *const argv[])
std::string profile_filename
bool GetProtoFromFile(const std::string &file_name, google::protobuf::Message *message)
Parses the content of the file specified by the file_name as a representation of protobufs,...
std::string GetAbsolutePath(const std::string &prefix, const std::string &relative_path)
Get absolute path by concatenating prefix and relative_path.
const std::string WorkRoot()
std::string GetFullConverterClassName(const std::string &class_name)
bool Init(const char *binary_name, const std::string &dag_info)
repeated PluginDeclareInfo converter