src
video_stream_node.cpp
Go to the documentation of this file.
1
#include <
ros/ros.h
>
2
#include <
nodelet/loader.h
>
3
4
int
main
(
int
argc,
char
**argv)
5
{
6
ros::init
(argc, argv,
"video_stream"
);
7
8
nodelet::Loader
manager(
true
);
9
nodelet::M_string
remappings;
10
nodelet::V_string
my_argv(argv + 1, argv + argc);
11
my_argv.push_back(
"--shutdown-on-close"
);
// Internal
12
13
manager.
load
(
ros::this_node::getName
(),
"video_stream_opencv/VideoStream"
, remappings, my_argv);
14
15
ros::spin
();
16
17
return
0;
18
}
nodelet::V_string
std::vector< std::string > V_string
nodelet::M_string
std::map< std::string, std::string > M_string
loader.h
ros::init
ROSCPP_DECL void init(const M_string &remappings, const std::string &name, uint32_t options=0)
ros.h
nodelet::Loader
nodelet::Loader::load
bool load(const std::string &name, const std::string &type, const M_string &remappings, const V_string &my_argv)
main
int main(int argc, char **argv)
Definition:
video_stream_node.cpp:4
ros::this_node::getName
const ROSCPP_DECL std::string & getName()
ros::spin
ROSCPP_DECL void spin()
video_stream_opencv
Author(s): Sammy Pfeiffer
autogenerated on Wed Mar 2 2022 01:11:07