Skip to content

Instantly share code, notes, and snippets.

@iamrajee
Last active March 17, 2020 06:59
Show Gist options
  • Save iamrajee/214bfeeb7834e649e5aa2051e8baa806 to your computer and use it in GitHub Desktop.
Save iamrajee/214bfeeb7834e649e5aa2051e8baa806 to your computer and use it in GitHub Desktop.
#include <rclcpp/rclcpp.hpp>
#include <chrono>
#include <cstdlib>
#include <memory>
#include <moveit_task_constructor/task.h>
#include <moveit_task_constructor/subtask.h>
#include <moveit_task_constructor/subtasks/current_state.h>
using namespace moveit::task_constructor;
int main(int argc, char** argv){
// rclcpp::init(argc, argv); //gave linker error
Task t;
t.addStart( std::make_shared<subtasks::CurrentState>("current state") );
t.plan();
// rclcpp::shutdown(); //gave linker error
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment