Skip to content

Commit a4c1367

Browse files
committed
using ros-controls/control_msgs#228 instead of industrial_robot_motion_interfaces
1 parent 1669026 commit a4c1367

File tree

6 files changed

+12
-15
lines changed

6 files changed

+12
-15
lines changed

motion_primitives_forward_controller/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ set(THIS_PACKAGE_INCLUDE_DEPENDS
1414
rclcpp_lifecycle
1515
realtime_tools
1616
std_srvs
17-
industrial_robot_motion_interfaces
1817
)
1918

2019
find_package(ament_cmake REQUIRED)
@@ -45,7 +44,6 @@ target_link_libraries(motion_primitives_forward_controller PUBLIC
4544
realtime_tools::realtime_tools
4645
${control_msgs_TARGETS}
4746
${std_srvs_TARGETS}
48-
${industrial_robot_motion_interfaces_TARGETS}
4947
)
5048

5149
target_compile_definitions(motion_primitives_forward_controller PRIVATE "MOTION_PRIMITIVES_FORWARD_CONTROLLER_BUILDING_DLL")

motion_primitives_forward_controller/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Package to control robots using motion primitives like LINEAR_JOINT (PTP/ MOVEJ)
66
[![Licence](https://img.shields.io/badge/License-Apache-2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
77

88

9-
This project provides an interface for sending motion primitives to an industrial robot controller using the `ExecuteMotion.action` action from the [industrial_robot_motion_interfaces](https://github.com/UniversalRobots/industrial_robot_motion_interfaces) package. The controller receives the primitives via the action interface and forwards them through command interfaces to the robot-specific hardware interface. Currently, hardware interfaces for [Universal Robots](https://github.com/UniversalRobots/Universal_Robots_ROS2_Driver) and [KUKA Robots](https://github.com/b-robotized-forks/kuka_experimental/tree/motion_primitive_kuka_driver) are implemented.
9+
This project provides an interface for sending motion primitives to an industrial robot controller using the `ExecuteMotionPrimitiveSequence.action` action from [control_msgs](https://github.com/ros-controls/control_msgs/blob/motion_primitives/control_msgs/action/ExecuteMotionPrimitiveSequence.action). The controller receives the primitives via the action interface and forwards them through command interfaces to the robot-specific hardware interface. Currently, hardware interfaces for [Universal Robots](https://github.com/UniversalRobots/Universal_Robots_ROS2_Driver) and [KUKA Robots](https://github.com/b-robotized-forks/kuka_experimental/tree/motion_primitive_kuka_driver) are implemented.
1010

1111
- Supported motion primitives:
1212
- `LINEAR_JOINT`

motion_primitives_forward_controller/include/motion_primitives_forward_controller/motion_primitives_forward_controller.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
#include "realtime_tools/realtime_buffer.hpp"
3232
#include "realtime_tools/realtime_publisher.hpp"
3333

34-
#include "industrial_robot_motion_interfaces/action/execute_motion.hpp"
35-
#include "industrial_robot_motion_interfaces/msg/motion_primitive.hpp"
34+
#include "control_msgs/action/execute_motion_primitive_sequence.hpp"
35+
#include "control_msgs/msg/motion_primitive.hpp"
3636
#include "rclcpp_action/rclcpp_action.hpp"
3737

3838
namespace motion_primitives_forward_controller
@@ -46,7 +46,7 @@ enum class ExecutionState : uint8_t
4646
STOPPED = 4
4747
};
4848

49-
using MotionType = industrial_robot_motion_interfaces::msg::MotionPrimitive;
49+
using MotionType = control_msgs::msg::MotionPrimitive;
5050
enum class MotionHelperType : uint8_t
5151
{
5252
STOP_MOTION = 66,
@@ -89,10 +89,10 @@ class MotionPrimitivesForwardController : public controller_interface::Controlle
8989
std::shared_ptr<motion_primitives_forward_controller::ParamListener> param_listener_;
9090
motion_primitives_forward_controller::Params params_;
9191

92-
using MotionPrimitive = industrial_robot_motion_interfaces::msg::MotionPrimitive;
92+
using MotionPrimitive = control_msgs::msg::MotionPrimitive;
9393
realtime_tools::LockFreeSPSCQueue<MotionPrimitive, 1024> moprim_queue_;
9494

95-
using ExecuteMotionAction = industrial_robot_motion_interfaces::action::ExecuteMotion;
95+
using ExecuteMotionAction = control_msgs::action::ExecuteMotionPrimitiveSequence;
9696
rclcpp_action::Server<ExecuteMotionAction>::SharedPtr action_server_;
9797
rclcpp_action::GoalResponse goal_received_callback(
9898
const rclcpp_action::GoalUUID & uuid, std::shared_ptr<const ExecuteMotionAction::Goal> goal);

motion_primitives_forward_controller/package.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
<depend>controller_interface</depend>
2727
<depend>hardware_interface</depend>
2828
<depend>pluginlib</depend>
29-
<depend>industrial_robot_motion_interfaces</depend>
3029
<depend>rclcpp</depend>
3130
<depend>rclcpp_lifecycle</depend>
3231
<depend>realtime_tools</depend>

motion_primitives_forward_controller/test/test_motion_primitives_forward_controller.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@
4141
#include "rclcpp_lifecycle/node_interfaces/lifecycle_node_interface.hpp"
4242
#include "rclcpp_lifecycle/state.hpp"
4343

44-
#include "industrial_robot_motion_interfaces/action/execute_motion.hpp"
45-
#include "industrial_robot_motion_interfaces/msg/motion_primitive.hpp"
44+
#include "control_msgs/action/execute_motion_primitive_sequence.hpp"
45+
#include "control_msgs/msg/motion_primitive.hpp"
4646

47-
using MotionPrimitive = industrial_robot_motion_interfaces::msg::MotionPrimitive;
48-
using ExecuteMotion = industrial_robot_motion_interfaces::action::ExecuteMotion;
47+
using MotionPrimitive = control_msgs::msg::MotionPrimitive;
48+
using ExecuteMotion = control_msgs::action::ExecuteMotionPrimitiveSequence;
4949

5050
namespace
5151
{

ros2_controllers.rolling.repos

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ repositories:
99
version: master
1010
control_msgs:
1111
type: git
12-
url: https://github.com/ros-controls/control_msgs.git
13-
version: master
12+
url: https://github.com/urfeex/control_msgs.git
13+
version: motion_primitives
1414
control_toolbox:
1515
type: git
1616
url: https://github.com/ros-controls/control_toolbox.git

0 commit comments

Comments
 (0)