not enough progress
This commit is contained in:
parent
df80fbfcb8
commit
08f4e835ab
2 changed files with 3 additions and 3 deletions
|
@ -8,6 +8,7 @@ find_package(catkin REQUIRED COMPONENTS
|
||||||
std_msgs
|
std_msgs
|
||||||
geometry_msgs
|
geometry_msgs
|
||||||
message_generation
|
message_generation
|
||||||
|
ardrone_autonomy
|
||||||
)
|
)
|
||||||
find_package(
|
find_package(
|
||||||
PkgConfig REQUIRED
|
PkgConfig REQUIRED
|
||||||
|
@ -30,7 +31,7 @@ catkin_package()
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${catkin_INCLUDE_DIRS}
|
${catkin_INCLUDE_DIRS}
|
||||||
${CURSESW_INCLUDE_DIRS}
|
${ncursesw_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_executable(filtre src/filtre.cpp)
|
add_executable(filtre src/filtre.cpp)
|
||||||
|
|
|
@ -17,7 +17,7 @@ class Callback
|
||||||
Callback(const boost::shared_ptr<Curses>& terminal) :
|
Callback(const boost::shared_ptr<Curses>& terminal) :
|
||||||
term(terminal) {}
|
term(terminal) {}
|
||||||
|
|
||||||
void operator()(const ardrone_autonomy::Navdata::ConstPtr msg) {
|
void operator()(const ardrone_autonomy::Navdata::ConstPtr& msg) {
|
||||||
term->update_navdata(msg->batteryPercent, msg->state, msg->tm);
|
term->update_navdata(msg->batteryPercent, msg->state, msg->tm);
|
||||||
}
|
}
|
||||||
}; // class Callback
|
}; // class Callback
|
||||||
|
@ -240,7 +240,6 @@ int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
setlocale(LC_ALL, "");
|
setlocale(LC_ALL, "");
|
||||||
ros::init(argc, argv, "keyboard_cmd");
|
ros::init(argc, argv, "keyboard_cmd");
|
||||||
//ros::Subscriber ... (navdata)
|
|
||||||
boost::shared_ptr<Curses> term(new Curses());
|
boost::shared_ptr<Curses> term(new Curses());
|
||||||
Run fun(term);
|
Run fun(term);
|
||||||
fun();
|
fun();
|
||||||
|
|
Loading…
Reference in a new issue