-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
47 additions
and
102 deletions.
There are no files selected for viewing
44 changes: 8 additions & 36 deletions
44
...mars_rover_arm_urdf_moveit/include/uwrt_mars_rover_arm_urdf_moveit/motion_plan_client.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,22 @@ | ||
// #include <rclcpp/rclcpp.hpp> | ||
// #include <uwrt_mars_rover_arm_urdf_moveit/srv/motion_plan.hpp> | ||
// #include <uwrt_mars_rover_arm_urdf_moveit/visibility_control.hpp> | ||
|
||
// #include "example_interfaces/srv/add_two_ints.hpp" | ||
|
||
// namespace uwrt_motion_planning { | ||
|
||
// class MotionPlanClient : public rclcpp::Node { | ||
// public: | ||
// UWRT_MOTION_PLANNING_PUBLIC | ||
// explicit MotionPlanClient(const rclcpp::NodeOptions& options); | ||
// private: | ||
// // rclcpp::Client<uwrt_mars_rover_arm_urdf_moveit::srv::MotionPlan>::SharedPtr client; | ||
// rclcpp::Client<example_interfaces::srv::AddTwoInts>::SharedPtr client; | ||
// rclcpp::TimerBase::SharedPtr timer; | ||
|
||
// void on_timer(); | ||
|
||
// }; | ||
// } | ||
|
||
// #endif | ||
|
||
#ifndef MOTION_PLAN_CLIENT_H | ||
#define MOTION_PLAN_CLIENT_H | ||
|
||
#include "rclcpp/rclcpp.hpp" | ||
#include "uwrt_mars_rover_arm_urdf_moveit/srv/motion_plan.hpp" | ||
#include "uwrt_mars_rover_arm_urdf_moveit/visibility_control.hpp" | ||
#include "example_interfaces/srv/add_two_ints.hpp" | ||
#include "rclcpp/rclcpp.hpp" | ||
|
||
namespace uwrt_motion_planning | ||
{ | ||
|
||
class MotionPlanClient : public rclcpp::Node | ||
{ | ||
public: | ||
explicit MotionPlanClient(const rclcpp::NodeOptions & options); | ||
namespace uwrt_motion_planning { | ||
class MotionPlanClient : public rclcpp::Node { | ||
public: | ||
explicit MotionPlanClient(const rclcpp::NodeOptions& options); | ||
|
||
protected: | ||
protected: | ||
void execute(); | ||
|
||
private: | ||
private: | ||
rclcpp::Client<uwrt_mars_rover_arm_urdf_moveit::srv::MotionPlan>::SharedPtr client_; | ||
}; | ||
|
||
} | ||
} // namespace uwrt_motion_planning | ||
|
||
#endif |
33 changes: 15 additions & 18 deletions
33
...mars_rover_arm_urdf_moveit/include/uwrt_mars_rover_arm_urdf_moveit/motion_plan_server.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,28 @@ | ||
#ifndef MOTION_PLAN_SERVER_H | ||
#define MOTION_PLAN_SERVER_H | ||
|
||
#include "uwrt_mars_rover_arm_urdf_moveit/visibility_control.hpp" | ||
#include "uwrt_mars_rover_arm_urdf_moveit/srv/motion_plan.hpp" | ||
#include "rclcpp/rclcpp.hpp" | ||
|
||
#include <moveit/move_group_interface/move_group_interface.h> | ||
#include <moveit/robot_model/robot_model.h> | ||
#include <moveit/robot_model_loader/robot_model_loader.h> | ||
#include <moveit/robot_state/robot_state.h> | ||
#include <moveit/move_group_interface/move_group_interface.h> | ||
|
||
namespace uwrt_motion_planning | ||
{ | ||
#include "rclcpp/rclcpp.hpp" | ||
#include "uwrt_mars_rover_arm_urdf_moveit/srv/motion_plan.hpp" | ||
#include "uwrt_mars_rover_arm_urdf_moveit/visibility_control.hpp" | ||
|
||
class MotionPlanServer : public rclcpp::Node | ||
{ | ||
public: | ||
UWRT_MOTION_PLANNING_PUBLIC | ||
explicit MotionPlanServer(const rclcpp::NodeOptions & options); | ||
namespace uwrt_motion_planning { | ||
|
||
private: | ||
rclcpp::Service<uwrt_mars_rover_arm_urdf_moveit::srv::MotionPlan>::SharedPtr srv_; | ||
void solve_ik(const std::shared_ptr<uwrt_mars_rover_arm_urdf_moveit::srv::MotionPlan::Request> request, | ||
std::shared_ptr<uwrt_mars_rover_arm_urdf_moveit::srv::MotionPlan::Response> response); | ||
class MotionPlanServer : public rclcpp::Node { | ||
public: | ||
UWRT_MOTION_PLANNING_PUBLIC | ||
explicit MotionPlanServer(const rclcpp::NodeOptions& options); | ||
|
||
private: | ||
rclcpp::Service<uwrt_mars_rover_arm_urdf_moveit::srv::MotionPlan>::SharedPtr srv_; | ||
void solve_ik(const std::shared_ptr<uwrt_mars_rover_arm_urdf_moveit::srv::MotionPlan::Request> request, | ||
std::shared_ptr<uwrt_mars_rover_arm_urdf_moveit::srv::MotionPlan::Response> response); | ||
}; | ||
|
||
} | ||
} // namespace uwrt_motion_planning | ||
|
||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
uwrt_mars_rover_arm/uwrt_mars_rover_arm_hw/compile_commands.json
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
uwrt_mars_rover_arm/uwrt_mars_rover_arm_hw/compile_commands.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/home/meshva/uwrt/build/uwrt_mars_rover_arm_hw/compile_commands.json |