ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

basic question to make a code with OMPL

asked 2014-06-05 12:44:21 -0500

Ken_in_JAPAN gravatar image

updated 2014-06-05 18:25:01 -0500

I read how to write a new global planner on this web.( http://wiki.ros.org/navigation/Tutori... ). and asked a question about how to implement OMPL. In the question, I said that OMPL is standalone. but, I don't make sense of standalone. I begin to write a code. Could anyone tell me if my description in ompl_planner_rrt.h is correct? Thank you in advance!

ompl_planner_rrt.h

#ifndef OMPL_PLANNER_RRT_H_
#define OMPL_PLANNER_RRT_H_
#include <ros/ros.h>
#include <costmap_2d/costmap_2d_ros.h>
#include <costmap_2d/costmap_2d.h>
#include <nav_core/base_global_planner.h>
#include <geometry_msgs/PoseStamped.h>
#include <angles/angles.h>
#include <tf/tf.h>
#include <tf/transform_datatypes.h>
#include <base_local_planner/world_model.h>
#include <base_local_planner/costmap_model.h>
#include <ompl/geometric/planners/rrt/RRT.h> 

ompl_planner_rrt.cpp

#include <ompl_planner_rrt/ompl_planner_rrt.h>
#include <pluginlib/class_list_macros.h>
edit retag flag offensive close merge delete

Comments

I should post this question on OMPL Mailing List?

Ken_in_JAPAN gravatar image Ken_in_JAPAN  ( 2014-06-05 15:21:42 -0500 )edit

Above files are based on carrot_planner.cpp *.h. here I change namespace of carrot_planner to one of ompl_planner_rrt and I quoted CMakeLists.txt and package.xml in Problem with new BaseGlobalPlanner plugin. After catkin_make, it created libompl_planner_rrt.so. I don't use a function of ompl.

Ken_in_JAPAN gravatar image Ken_in_JAPAN  ( 2014-06-05 18:42:16 -0500 )edit

It might be important for me to look through sample code of OMPL.

Ken_in_JAPAN gravatar image Ken_in_JAPAN  ( 2014-06-05 19:23:05 -0500 )edit

I should edit only makePlan in ompl_planner_rrt.cpp with ob = ompl;;base and og = ompl::geometric?

Ken_in_JAPAN gravatar image Ken_in_JAPAN  ( 2014-06-05 20:04:09 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-06-06 09:14:37 -0500

Ken_in_JAPAN gravatar image

Standalone means I can insert ompl/geometric/planners/rrt/RRT.h in ompl_planner_rrt.cpp and *.h and use function by calling OMPL.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-06-05 12:44:21 -0500

Seen: 343 times

Last updated: Jun 06 '14