Skip to content

Commit ca3281b

Browse files
Release/Flexiv ROS 2 Humble v1.7 (#46)
1 parent 2da41a6 commit ca3281b

File tree

177 files changed

+258553
-38022
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+258553
-38022
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ The prerequisites of using ROS 2 with Flexiv Rizon robot are [enable RDK on the
112112
The main launch file to start the robot driver is the `rizon.launch.py` - it loads and starts the robot hardware, joint states broadcaster, Flexiv robot states broadcasters, and robot controller and opens RViZ. The arguments for the launch file are as follows:
113113
114114
- `robot_sn` (*required*) - Serial number of the robot to connect to. Remove any space, for example: Rizon4s-123456
115-
- `rizon_type` (default: *rizon4*) - type of the Flexiv Rizon robot. (rizon4, rizon4s, rizon10 or rizon10s)
115+
- `rizon_type` (default: *Rizon4*) - type of the Flexiv Rizon robot. (Rizon4, Rizon4M, Rizon4R, Rizon4s, Rizon10 or Rizon10s)
116116
- `load_gripper` (default: *false*) - loads the Flexiv Grav gripper as the end-effector of the robot and the gripper control node.
117117
- `use_fake_hardware` (default: *false*) - starts `FakeSystem` instead of real hardware. This is a simple simulation that mimics joint command to their states.
118118
- `start_rviz` (deafult: *true*) - starts RViz automatically with the launch file.
@@ -128,7 +128,7 @@ The main launch file to start the robot driver is the `rizon.launch.py` - it loa
128128
- Test with real robot:
129129
130130
```bash
131-
ros2 launch flexiv_bringup rizon.launch.py robot_sn:=[robot_sn] rizon_type:=rizon4
131+
ros2 launch flexiv_bringup rizon.launch.py robot_sn:=[robot_sn] rizon_type:=Rizon4
132132
```
133133
134134
- Test with fake hardware (`ros2_control` capability):

flexiv_bringup/launch/rizon.launch.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def generate_launch_description():
3535
DeclareLaunchArgument(
3636
rizon_type_param_name,
3737
description="Type of the Flexiv Rizon robot.",
38-
default_value="rizon4",
39-
choices=["rizon4", "rizon4s", "rizon10", "rizon10s"],
38+
default_value="Rizon4",
39+
choices=["Rizon4", "Rizon4M", "Rizon4R", "Rizon4s", "Rizon10", "Rizon10s"],
4040
)
4141
)
4242

@@ -255,14 +255,6 @@ def generate_launch_description():
255255
condition=UnlessCondition(use_fake_hardware),
256256
)
257257

258-
# Delay rviz start after `joint_state_broadcaster`
259-
delay_rviz_after_joint_state_broadcaster_spawner = RegisterEventHandler(
260-
event_handler=OnProcessExit(
261-
target_action=joint_state_broadcaster_spawner,
262-
on_exit=[rviz_node],
263-
)
264-
)
265-
266258
# Delay start of robot_controller after `joint_state_broadcaster`
267259
delay_robot_controller_spawner_after_joint_state_broadcaster_spawner = (
268260
RegisterEventHandler(
@@ -273,6 +265,14 @@ def generate_launch_description():
273265
)
274266
)
275267

268+
# Delay rviz start after `robot_controller_spawner`
269+
delay_rviz_after_robot_controller_spawner = RegisterEventHandler(
270+
event_handler=OnProcessExit(
271+
target_action=robot_controller_spawner,
272+
on_exit=[rviz_node],
273+
)
274+
)
275+
276276
nodes = [
277277
ros2_control_node,
278278
joint_state_publisher_node,
@@ -281,8 +281,8 @@ def generate_launch_description():
281281
flexiv_robot_states_broadcaster_spawner,
282282
load_gripper_launch,
283283
gpio_controller_spawner,
284-
delay_rviz_after_joint_state_broadcaster_spawner,
285284
delay_robot_controller_spawner_after_joint_state_broadcaster_spawner,
285+
delay_rviz_after_robot_controller_spawner,
286286
]
287287

288288
return LaunchDescription(declared_arguments + nodes)

flexiv_bringup/launch/rizon_moveit.launch.py

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ def launch_setup(context):
116116
"robot_description_semantic": robot_description_semantic_content
117117
}
118118

119+
publish_robot_description_semantic = {"publish_robot_description_semantic": True}
120+
119121
robot_description_kinematics = PathJoinSubstitution(
120122
[FindPackageShare("flexiv_moveit_config"), "config", "kinematics.yaml"]
121123
)
@@ -179,12 +181,13 @@ def launch_setup(context):
179181
parameters=[
180182
robot_description,
181183
robot_description_semantic,
184+
publish_robot_description_semantic,
182185
robot_description_kinematics,
186+
joint_limits_yaml,
183187
ompl_planning_pipeline_config,
184188
trajectory_execution,
185189
moveit_controllers,
186190
planning_scene_monitor_parameters,
187-
joint_limits_yaml,
188191
warehouse_ros_config,
189192
],
190193
)
@@ -331,14 +334,6 @@ def launch_setup(context):
331334
condition=UnlessCondition(use_fake_hardware),
332335
)
333336

334-
# Delay rviz start after `joint_state_broadcaster`
335-
delay_rviz_after_joint_state_broadcaster_spawner = RegisterEventHandler(
336-
event_handler=OnProcessExit(
337-
target_action=joint_state_broadcaster_spawner,
338-
on_exit=[rviz_node],
339-
)
340-
)
341-
342337
# Delay start of robot_controller after `joint_state_broadcaster`
343338
delay_robot_controller_spawner_after_joint_state_broadcaster_spawner = (
344339
RegisterEventHandler(
@@ -349,8 +344,23 @@ def launch_setup(context):
349344
)
350345
)
351346

347+
# Delay move_group start after `robot_controller_spawner`
348+
delay_move_group_after_robot_controller_spawner = RegisterEventHandler(
349+
event_handler=OnProcessExit(
350+
target_action=robot_controller_spawner,
351+
on_exit=[move_group_node],
352+
)
353+
)
354+
355+
# Delay rviz start after `robot_controller_spawner`
356+
delay_rviz_after_robot_controller_spawner = RegisterEventHandler(
357+
event_handler=OnProcessExit(
358+
target_action=robot_controller_spawner,
359+
on_exit=[rviz_node],
360+
)
361+
)
362+
352363
nodes = [
353-
move_group_node,
354364
ros2_control_node,
355365
joint_state_publisher_node,
356366
robot_state_publisher_node,
@@ -359,8 +369,9 @@ def launch_setup(context):
359369
load_gripper_launch,
360370
gpio_controller_spawner,
361371
servo_node,
362-
delay_rviz_after_joint_state_broadcaster_spawner,
363372
delay_robot_controller_spawner_after_joint_state_broadcaster_spawner,
373+
delay_move_group_after_robot_controller_spawner,
374+
delay_rviz_after_robot_controller_spawner,
364375
]
365376

366377
return nodes
@@ -374,8 +385,8 @@ def generate_launch_description():
374385
DeclareLaunchArgument(
375386
"rizon_type",
376387
description="Type of the Flexiv Rizon robot.",
377-
default_value="rizon4",
378-
choices=["rizon4", "rizon4s", "rizon10", "rizon10s"],
388+
default_value="Rizon4",
389+
choices=["Rizon4", "Rizon4M", "Rizon4R", "Rizon4s", "Rizon10", "Rizon10s"],
379390
)
380391
)
381392

flexiv_controllers/flexiv_robot_states_broadcaster/include/flexiv_robot_states_broadcaster/flexiv_robot_states_broadcaster.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include "controller_interface/controller_interface.hpp"
1515
#include "flexiv_msgs/msg/robot_states.hpp"
1616
#include "flexiv_robot_states_broadcaster/flexiv_robot_states.hpp"
17-
#include "flexiv_robot_states_broadcaster_parameters.hpp"
17+
#include "flexiv_robot_states_broadcaster/flexiv_robot_states_broadcaster_parameters.hpp"
1818
#include "rclcpp_lifecycle/node_interfaces/lifecycle_node_interface.hpp"
1919
#include "rclcpp_lifecycle/state.hpp"
2020
#include "realtime_tools/realtime_publisher.hpp"

flexiv_controllers/gpio_controller/include/gpio_controller/gpio_controller.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <vector>
1515

1616
#include "controller_interface/controller_interface.hpp"
17-
#include "gpio_controller_parameters.hpp"
17+
#include "gpio_controller/gpio_controller_parameters.hpp"
1818
#include "flexiv_msgs/msg/gpio_states.hpp"
1919

2020
namespace gpio_controller {

flexiv_description/launch/view_rizon.launch.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,16 @@ def generate_launch_description():
8686
),
8787
DeclareLaunchArgument(
8888
name="rizon_type",
89-
default_value="rizon4",
89+
default_value="Rizon4",
9090
description="Type of the Flexiv Rizon robot.",
91-
choices=["rizon4", "rizon4s", "rizon10", "rizon10s"],
91+
choices=[
92+
"Rizon4",
93+
"Rizon4M",
94+
"Rizon4R",
95+
"Rizon4s",
96+
"Rizon10",
97+
"Rizon10s",
98+
],
9299
),
93100
DeclareLaunchArgument(
94101
name="load_gripper",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)