ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to fix ros::NodeHandle error? [closed]

asked 2017-01-05 13:37:29 -0500

Joy16 gravatar image

updated 2017-01-05 14:09:09 -0500

This is my code snippet of curser.h

  1 #ifndef CURSER_H
  2 #define CURSER_H
  3 
  4 #include <iostream>
  5 #include <stdio.h>
  6 #include <ros/ros.h>
  7 #include<string>
  8 
  9 using namespace std;
 10 
 11 class Topic
 12 {
 13   
 14   public:
 15   //constructor
 16   ros::Nodehandle nh;
 17   ros::Subscriber sub;
 18 
 19   Topic(char *argv);
 20 
 21 };
 22 
 23 #endif

I am getting this error:

curser.h:16:8: error: ‘Nodehandle’ in namespace ‘ros’ does not name a type

Could someone help me out with this please?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by NEngelhard
close date 2017-01-05 14:43:36.184817

1 Answer

Sort by » oldest newest most voted
4

answered 2017-01-05 13:50:05 -0500

NEngelhard gravatar image

updated 2017-01-05 13:50:15 -0500

It's NodeHandle

edit flag offensive delete link more

Comments

Thanks! It worked..

Joy16 gravatar image Joy16  ( 2017-01-05 13:56:39 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-01-05 13:37:29 -0500

Seen: 1,730 times

Last updated: Jan 05 '17