Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rosnode to orocos component #4

Open
cfpperche2 opened this issue Mar 15, 2016 · 0 comments
Open

rosnode to orocos component #4

cfpperche2 opened this issue Mar 15, 2016 · 0 comments

Comments

@cfpperche2
Copy link

Hello, I need help to transform a node ros into a component orocos.
Why I need is turn this ros node file to a component orocos.

#include <ros/ros.h>
#include <image_transport/image_transport.h>
#include <sensor_msgs/image_encodings.h>
#include "RoadLineProcessing.hpp"

int main(int argc, char **argv)
{
  ros::init(argc, argv, "image_listener");
  ros::NodeHandle nh;

  image_transport::ImageTransport it(nh);
  RoadLineProcessing myRoad(nh);
  image_transport::Subscriber sub = it.subscribe("/image_raw", 1,boost::bind(&RoadLineProcessing::imageCallback, &myRoad, _1));
  ros::spin();
  return 0;
}

Exists any way to do this ?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant