ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Try uncommenting # include
so that you have
include_directories(
include
${catkin_INCLUDE_DIRS}
)
2 | No.2 Revision |
Try uncommenting # include
so that you have
include_directories(
include
${catkin_INCLUDE_DIRS}
)
This is assuming that magnet.h
is directly under your include/
directory, and that there is indeed a constructor that accepts a NodleHandle
.
3 | No.3 Revision |
Try uncommenting # include
so that you have
include_directories(
include
${catkin_INCLUDE_DIRS}
)
This is assuming that magnet.h
is directly under your include/
directory, and that there is indeed a constructor that accepts a NodleHandle
.. That error message seems to mean that you do not have one.
4 | No.4 Revision |
Try uncommenting # include
so that you have
include_directories(
include
${catkin_INCLUDE_DIRS}
)
This is assuming that magnet.h
is directly under your include/
directory, and that there is indeed a constructor that accepts a NodleHandle
. That error message seems to mean that you do not have one.one. The implementation should look like this in the .cpp
file.
Magnet::Magnet(ros::NodeHandle mynode) {
//...
}
5 | No.5 Revision |
Try uncommenting # include
so that you have
include_directories(
include
${catkin_INCLUDE_DIRS}
)
This is assuming that magnet.h
is directly under your include/
directory, and that there is indeed a constructor that accepts a NodleHandle
. That error message seems to mean that you do not have one. The implementation should look like this in the .cpp
file.
Magnet::Magnet(ros::NodeHandle mynode) {
//...
}
Last thing: add magnet.cpp
at the end in add_executable()
!
6 | No.6 Revision |
Try uncommenting # include
so that you have
include_directories(
include
${catkin_INCLUDE_DIRS}
)
This is assuming that magnet.h
is directly under your include/
directory, and that there is indeed a constructor that accepts a NodleHandle
. That error message seems to mean that you do not have one. The implementation should look like this in the .cpp
file.
Magnet::Magnet(ros::NodeHandle mynode) {
//...
}
Last thing: add magnet.cpp
at the end in add_executable()
!! This is probably the cause.