disparity_view.cpp
Go to the documentation of this file.
00001 #include <ros/ros.h>
00002 #include <nodelet/loader.h>
00003 
00004 int main(int argc, char **argv)
00005 {
00006   ros::init(argc, argv, "disparity_view", ros::init_options::AnonymousName);
00007   if (ros::names::remap("image") == "image") {
00008     ROS_WARN("Topic 'image' has not been remapped! Typical command-line usage:\n"
00009              "\t$ rosrun image_view disparity_view image:=<disparity image topic>");
00010   }
00011 
00012   nodelet::Loader manager(false);
00013   nodelet::M_string remappings;
00014   nodelet::V_string my_argv(argv + 1, argv + argc);
00015   my_argv.push_back("--shutdown-on-close"); // Internal
00016 
00017   manager.load(ros::this_node::getName(), "image_view/disparity", remappings, my_argv);
00018 
00019   ros::spin();
00020   return 0;
00021 }


image_view
Author(s): Patrick Mihelich
autogenerated on Fri Jan 3 2014 11:24:41