Initial commit of Panther-PiPER custom ROS 2 packages
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
# Ignore external third-party repositories imported via vcs
|
||||
/behaviortree_ros2
|
||||
/husarion_components_description
|
||||
/husarion_controllers
|
||||
/husarion_gz_worlds
|
||||
/husarion_ugv_ros
|
||||
/joy2twist
|
||||
/piper_ros
|
||||
|
||||
# Python cache & temporary files
|
||||
__pycache__/
|
||||
*.pyc
|
||||
*.pyo
|
||||
*.pyd
|
||||
|
||||
# OS & IDE temporary files
|
||||
.vscode/
|
||||
.idea/
|
||||
.DS_Store
|
||||
*.swp
|
||||
*~
|
||||
@@ -0,0 +1,29 @@
|
||||
repositories:
|
||||
behaviortree_ros2:
|
||||
type: git
|
||||
url: https://github.com/BehaviorTree/BehaviorTree.ROS2.git
|
||||
version: humble
|
||||
husarion_components_description:
|
||||
type: git
|
||||
url: https://github.com/husarion/husarion_components_description.git
|
||||
version: main
|
||||
husarion_controllers:
|
||||
type: git
|
||||
url: https://github.com/husarion/husarion_controllers.git
|
||||
version: main
|
||||
husarion_gz_worlds:
|
||||
type: git
|
||||
url: https://github.com/husarion/husarion_gz_worlds.git
|
||||
version: main
|
||||
husarion_ugv_ros:
|
||||
type: git
|
||||
url: https://github.com/husarion/husarion_ugv_ros.git
|
||||
version: humble
|
||||
joy2twist:
|
||||
type: git
|
||||
url: https://github.com/husarion/joy2twist.git
|
||||
version: ros2
|
||||
piper_ros:
|
||||
type: git
|
||||
url: https://github.com/agilexrobotics/piper_ros.git
|
||||
version: humble
|
||||
@@ -0,0 +1,14 @@
|
||||
cmake_minimum_required(VERSION 3.8)
|
||||
project(panther_piper_description)
|
||||
|
||||
find_package(ament_cmake REQUIRED)
|
||||
|
||||
install(DIRECTORY
|
||||
config
|
||||
launch
|
||||
urdf
|
||||
rviz
|
||||
DESTINATION share/${PROJECT_NAME}
|
||||
)
|
||||
|
||||
ament_package()
|
||||
@@ -0,0 +1,97 @@
|
||||
controller_manager:
|
||||
ros__parameters:
|
||||
update_rate: 100
|
||||
|
||||
joint_state_broadcaster:
|
||||
type: joint_state_broadcaster/JointStateBroadcaster
|
||||
drive_controller:
|
||||
type: diff_drive_controller/DiffDriveController
|
||||
imu_broadcaster:
|
||||
type: imu_sensor_broadcaster/IMUSensorBroadcaster
|
||||
arm_controller:
|
||||
type: joint_trajectory_controller/JointTrajectoryController
|
||||
gripper_controller:
|
||||
type: joint_trajectory_controller/JointTrajectoryController
|
||||
gripper8_controller:
|
||||
type: joint_trajectory_controller/JointTrajectoryController
|
||||
|
||||
imu_broadcaster:
|
||||
ros__parameters:
|
||||
sensor_name: imu
|
||||
frame_id: imu_link
|
||||
static_covariance_angular_velocity: [1.0e-4, 0.0, 0.0, 0.0, 1.0e-4, 0.0, 0.0, 0.0, 1.0e-4]
|
||||
static_covariance_linear_acceleration: [7.6e-4, 0.0, 0.0, 0.0, 7.6e-4, 0.0, 0.0, 0.0, 7.6e-4]
|
||||
|
||||
drive_controller:
|
||||
ros__parameters:
|
||||
left_wheel_names: [fl_wheel_joint, rl_wheel_joint]
|
||||
right_wheel_names: [fr_wheel_joint, rr_wheel_joint]
|
||||
|
||||
wheel_separation: 0.697
|
||||
wheel_radius: 0.1825
|
||||
wheel_separation_multiplier: 1.5
|
||||
|
||||
left_wheel_radius_multiplier: 1.0
|
||||
right_wheel_radius_multiplier: 1.0
|
||||
|
||||
publish_rate: 100.0
|
||||
odom_frame_id: odom
|
||||
base_frame_id: base_link
|
||||
twist_covariance_diagonal: [5.4e-5, 5.4e-5, 0.0, 0.0, 0.0, 1.9e-4]
|
||||
|
||||
open_loop: false
|
||||
position_feedback: false
|
||||
velocity_rolling_window_size: 1
|
||||
enable_odom_tf: true
|
||||
|
||||
cmd_vel_timeout: 0.2
|
||||
publish_limited_velocity: false
|
||||
|
||||
linear:
|
||||
x:
|
||||
max_velocity: 2.0
|
||||
min_velocity: -2.0
|
||||
max_acceleration: 2.7
|
||||
max_deceleration: -2.7
|
||||
|
||||
angular:
|
||||
z:
|
||||
max_velocity: 4.0
|
||||
min_velocity: -4.0
|
||||
max_acceleration: 5.74
|
||||
max_deceleration: -5.74
|
||||
|
||||
arm_controller:
|
||||
ros__parameters:
|
||||
joints:
|
||||
- joint1
|
||||
- joint2
|
||||
- joint3
|
||||
- joint4
|
||||
- joint5
|
||||
- joint6
|
||||
command_interfaces:
|
||||
- position
|
||||
state_interfaces:
|
||||
- position
|
||||
- velocity
|
||||
|
||||
gripper_controller:
|
||||
ros__parameters:
|
||||
joints:
|
||||
- joint7
|
||||
command_interfaces:
|
||||
- position
|
||||
state_interfaces:
|
||||
- position
|
||||
- velocity
|
||||
|
||||
gripper8_controller:
|
||||
ros__parameters:
|
||||
joints:
|
||||
- joint8
|
||||
command_interfaces:
|
||||
- position
|
||||
state_interfaces:
|
||||
- position
|
||||
- velocity
|
||||
@@ -0,0 +1,135 @@
|
||||
import os
|
||||
from ament_index_python.packages import get_package_share_directory
|
||||
from launch import LaunchDescription
|
||||
from launch.actions import DeclareLaunchArgument, IncludeLaunchDescription, SetEnvironmentVariable
|
||||
from launch.launch_description_sources import PythonLaunchDescriptionSource
|
||||
from launch.substitutions import Command, LaunchConfiguration
|
||||
from launch_ros.actions import Node
|
||||
|
||||
def generate_launch_description():
|
||||
pkg_path = get_package_share_directory('panther_piper_description')
|
||||
|
||||
xacro_file = os.path.join(pkg_path, 'urdf', 'panther_piper.urdf.xacro')
|
||||
controller_config = os.path.join(pkg_path, 'config', 'controllers.yaml')
|
||||
|
||||
# Set Gazebo resource path to find meshes of all packages
|
||||
ament_prefix_path = os.environ.get('AMENT_PREFIX_PATH', '')
|
||||
resource_paths = []
|
||||
if ament_prefix_path:
|
||||
for path in ament_prefix_path.split(':'):
|
||||
if path:
|
||||
pkg_share = os.path.join(path, 'share')
|
||||
if os.path.isdir(pkg_share):
|
||||
resource_paths.append(pkg_share)
|
||||
|
||||
gz_resource_path_str = ':'.join(resource_paths)
|
||||
|
||||
set_gz_resource_path = SetEnvironmentVariable(
|
||||
name='GZ_SIM_RESOURCE_PATH',
|
||||
value=gz_resource_path_str
|
||||
)
|
||||
|
||||
set_ign_resource_path = SetEnvironmentVariable(
|
||||
name='IGN_GAZEBO_RESOURCE_PATH',
|
||||
value=gz_resource_path_str
|
||||
)
|
||||
|
||||
# Process Xacro
|
||||
robot_description_content = Command([
|
||||
'xacro ', xacro_file,
|
||||
' use_sim:=true',
|
||||
' controller_config_file:=', controller_config
|
||||
])
|
||||
|
||||
robot_state_publisher_node = Node(
|
||||
package='robot_state_publisher',
|
||||
executable='robot_state_publisher',
|
||||
name='robot_state_publisher',
|
||||
output='screen',
|
||||
parameters=[{
|
||||
'robot_description': robot_description_content,
|
||||
'use_sim_time': True
|
||||
}]
|
||||
)
|
||||
|
||||
# Launch Gazebo
|
||||
gz_sim_launch = IncludeLaunchDescription(
|
||||
PythonLaunchDescriptionSource(
|
||||
os.path.join(get_package_share_directory('ros_gz_sim'), 'launch', 'gz_sim.launch.py')
|
||||
),
|
||||
launch_arguments={'gz_args': '-r empty.sdf'}.items(),
|
||||
)
|
||||
|
||||
# Spawn Robot
|
||||
spawn_robot_node = Node(
|
||||
package='ros_gz_sim',
|
||||
executable='create',
|
||||
name='spawn_robot',
|
||||
arguments=['-name', 'panther_piper', '-topic', 'robot_description'],
|
||||
output='screen',
|
||||
parameters=[{'use_sim_time': True}]
|
||||
)
|
||||
|
||||
# Bridge for Clock
|
||||
clock_bridge_node = Node(
|
||||
package='ros_gz_bridge',
|
||||
executable='parameter_bridge',
|
||||
name='clock_bridge',
|
||||
arguments=['/clock@rosgraph_msgs/msg/Clock[gz.msgs.Clock'],
|
||||
output='screen'
|
||||
)
|
||||
|
||||
# Controller Spawners
|
||||
joint_state_broadcaster_spawner = Node(
|
||||
package='controller_manager',
|
||||
executable='spawner',
|
||||
arguments=['joint_state_broadcaster', '--controller-manager', '/controller_manager'],
|
||||
output='screen',
|
||||
parameters=[{'use_sim_time': True}]
|
||||
)
|
||||
|
||||
drive_controller_spawner = Node(
|
||||
package='controller_manager',
|
||||
executable='spawner',
|
||||
arguments=['drive_controller', '--controller-manager', '/controller_manager'],
|
||||
output='screen',
|
||||
parameters=[{'use_sim_time': True}]
|
||||
)
|
||||
|
||||
arm_controller_spawner = Node(
|
||||
package='controller_manager',
|
||||
executable='spawner',
|
||||
arguments=['arm_controller', '--controller-manager', '/controller_manager'],
|
||||
output='screen',
|
||||
parameters=[{'use_sim_time': True}]
|
||||
)
|
||||
|
||||
gripper_controller_spawner = Node(
|
||||
package='controller_manager',
|
||||
executable='spawner',
|
||||
arguments=['gripper_controller', '--controller-manager', '/controller_manager'],
|
||||
output='screen',
|
||||
parameters=[{'use_sim_time': True}]
|
||||
)
|
||||
|
||||
gripper8_controller_spawner = Node(
|
||||
package='controller_manager',
|
||||
executable='spawner',
|
||||
arguments=['gripper8_controller', '--controller-manager', '/controller_manager'],
|
||||
output='screen',
|
||||
parameters=[{'use_sim_time': True}]
|
||||
)
|
||||
|
||||
return LaunchDescription([
|
||||
set_gz_resource_path,
|
||||
set_ign_resource_path,
|
||||
robot_state_publisher_node,
|
||||
gz_sim_launch,
|
||||
spawn_robot_node,
|
||||
clock_bridge_node,
|
||||
joint_state_broadcaster_spawner,
|
||||
drive_controller_spawner,
|
||||
arm_controller_spawner,
|
||||
gripper_controller_spawner,
|
||||
gripper8_controller_spawner
|
||||
])
|
||||
@@ -0,0 +1,45 @@
|
||||
import os
|
||||
from ament_index_python.packages import get_package_share_directory
|
||||
from launch import LaunchDescription
|
||||
from launch.actions import DeclareLaunchArgument
|
||||
from launch.substitutions import Command, LaunchConfiguration
|
||||
from launch_ros.actions import Node
|
||||
|
||||
def generate_launch_description():
|
||||
pkg_path = get_package_share_directory('panther_piper_description')
|
||||
|
||||
xacro_file = os.path.join(pkg_path, 'urdf', 'panther_piper.urdf.xacro')
|
||||
|
||||
robot_description_content = Command([
|
||||
'xacro ', xacro_file,
|
||||
' use_sim:=false'
|
||||
])
|
||||
|
||||
robot_state_publisher_node = Node(
|
||||
package='robot_state_publisher',
|
||||
executable='robot_state_publisher',
|
||||
name='robot_state_publisher',
|
||||
output='screen',
|
||||
parameters=[{'robot_description': robot_description_content}]
|
||||
)
|
||||
|
||||
joint_state_publisher_gui_node = Node(
|
||||
package='joint_state_publisher_gui',
|
||||
executable='joint_state_publisher_gui',
|
||||
name='joint_state_publisher_gui',
|
||||
output='screen'
|
||||
)
|
||||
|
||||
rviz_node = Node(
|
||||
package='rviz2',
|
||||
executable='rviz2',
|
||||
name='rviz2',
|
||||
output='screen',
|
||||
arguments=['-d', os.path.join(pkg_path, 'rviz', 'view_robot.rviz')]
|
||||
)
|
||||
|
||||
return LaunchDescription([
|
||||
robot_state_publisher_node,
|
||||
joint_state_publisher_gui_node,
|
||||
rviz_node
|
||||
])
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0"?>
|
||||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
|
||||
<package format="3">
|
||||
<name>panther_piper_description</name>
|
||||
<version>0.0.1</version>
|
||||
<description>Robot description package integrating Husarion Panther UGV with AgileX PiPER robotic arm and ZED 2i camera</description>
|
||||
<maintainer email="user@todo.todo">User</maintainer>
|
||||
<license>Apache-2.0</license>
|
||||
|
||||
<buildtool_depend>ament_cmake</buildtool_depend>
|
||||
|
||||
<exec_depend>joint_state_publisher</exec_depend>
|
||||
<exec_depend>joint_state_publisher_gui</exec_depend>
|
||||
<exec_depend>robot_state_publisher</exec_depend>
|
||||
<exec_depend>rviz2</exec_depend>
|
||||
<exec_depend>xacro</exec_depend>
|
||||
|
||||
<export>
|
||||
<build_type>ament_cmake</build_type>
|
||||
</export>
|
||||
</package>
|
||||
@@ -0,0 +1,69 @@
|
||||
Panels:
|
||||
- Class: rviz_common/Displays
|
||||
Help Height: 78
|
||||
Name: Displays
|
||||
Property Tree Widget:
|
||||
Expanded:
|
||||
- /Grid1
|
||||
- /RobotModel1
|
||||
- /TF1
|
||||
Splitter Ratio: 0.5
|
||||
Tree Height: 557
|
||||
Visualization Manager:
|
||||
Class: ""
|
||||
Displays:
|
||||
- Alpha: 1
|
||||
Cell Size: 1
|
||||
Class: rviz_default_plugins/Grid
|
||||
Color: 160; 160; 160
|
||||
Enabled: true
|
||||
Line Style:
|
||||
Line Width: 0.03
|
||||
Value: Lines
|
||||
Name: Grid
|
||||
Normal Cell Count: 0
|
||||
Offset:
|
||||
X: 0
|
||||
Y: 0
|
||||
Z: 0
|
||||
Plane: XY
|
||||
Plane Cell Count: 10
|
||||
Reference Frame: <Fixed Frame>
|
||||
Value: true
|
||||
- Class: rviz_default_plugins/RobotModel
|
||||
Description Source: Topic
|
||||
Description Topic:
|
||||
Depth: 5
|
||||
Durability Policy: Volatile
|
||||
History Policy: Keep Last
|
||||
Reliability Policy: Reliable
|
||||
Value: /robot_description
|
||||
Enabled: true
|
||||
Name: RobotModel
|
||||
Visual Enabled: true
|
||||
Value: true
|
||||
- Class: rviz_default_plugins/TF
|
||||
Enabled: true
|
||||
Name: TF
|
||||
Show Axes: true
|
||||
Show Arrows: true
|
||||
Show Names: true
|
||||
Value: true
|
||||
Global Options:
|
||||
Background Color: 48; 48; 48
|
||||
Fixed Frame: base_link
|
||||
Frame Rate: 30
|
||||
Tools:
|
||||
- Class: rviz_default_plugins/Interact
|
||||
- Class: rviz_default_plugins/MoveCamera
|
||||
Views:
|
||||
Current:
|
||||
Class: rviz_default_plugins/Orbit
|
||||
Distance: 3.0
|
||||
Focal Point:
|
||||
X: 0
|
||||
Y: 0
|
||||
Z: 0.5
|
||||
Name: Current View
|
||||
Pitch: 0.3
|
||||
Yaw: 0.8
|
||||
@@ -0,0 +1,213 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<robot name="panther_piper" xmlns:xacro="http://wiki.ros.org/xacro">
|
||||
|
||||
<!-- Arguments -->
|
||||
<xacro:arg name="use_sim" default="true" />
|
||||
<xacro:arg name="imu_xyz" default="0.169 0.025 0.092" />
|
||||
<xacro:arg name="imu_rpy" default="0.0 0.0 -1.57" />
|
||||
<xacro:arg name="wheel_config_file" default="$(find husarion_ugv_description)/config/WH01.yaml" />
|
||||
<xacro:arg name="controller_config_file" default="$(find husarion_ugv_controller)/config/WH01_controller.yaml" />
|
||||
<xacro:arg name="battery_config_file" default="" />
|
||||
<xacro:arg name="namespace" default="" />
|
||||
|
||||
<!-- Configurable Offsets for Arm & Camera -->
|
||||
<!-- Modifying these properties allows the user to change positions easily -->
|
||||
<xacro:property name="arm_x_offset" value="0.12" />
|
||||
<xacro:property name="arm_y_offset" value="-0.10" />
|
||||
<xacro:property name="arm_z_offset" value="0.45" />
|
||||
<xacro:property name="arm_roll" value="0.0" />
|
||||
<xacro:property name="arm_pitch" value="0.0" />
|
||||
<xacro:property name="arm_yaw" value="0.0" />
|
||||
|
||||
<xacro:property name="camera_x_offset" value="0.0" />
|
||||
<xacro:property name="camera_y_offset" value="0.0" />
|
||||
<xacro:property name="camera_z_offset" value="0.80" />
|
||||
<xacro:property name="camera_roll" value="0.0" />
|
||||
<xacro:property name="camera_pitch" value="0.0" />
|
||||
<xacro:property name="camera_yaw" value="0.0" />
|
||||
|
||||
<!-- Include Panther base robot -->
|
||||
<xacro:include filename="$(find husarion_ugv_description)/urdf/panther/panther_macro.urdf.xacro" ns="husarion" />
|
||||
<xacro:husarion.panther_robot
|
||||
use_sim="$(arg use_sim)"
|
||||
imu_xyz="$(arg imu_xyz)"
|
||||
imu_rpy="$(arg imu_rpy)"
|
||||
wheel_config_file="$(arg wheel_config_file)"
|
||||
controller_config_file="$(arg controller_config_file)"
|
||||
battery_config_file="$(arg battery_config_file)"
|
||||
namespace="$(arg namespace)" />
|
||||
|
||||
<!-- Include PiPER Arm description -->
|
||||
<xacro:include filename="$(find panther_piper_description)/urdf/piper_description_modified.xacro" />
|
||||
|
||||
<!-- Aluminum Frame and Custom Structure Links -->
|
||||
<link name="aluminum_frame">
|
||||
<inertial>
|
||||
<origin xyz="0 0 0.4" rpy="0 0 0" />
|
||||
<mass value="5.0" />
|
||||
<inertia ixx="0.1" ixy="0.0" ixz="0.0" iyy="0.1" iyz="0.0" izz="0.05" />
|
||||
</inertial>
|
||||
<!-- Left vertical profile -->
|
||||
<visual>
|
||||
<origin xyz="-0.15 0.2 0.4" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<box size="0.03 0.03 0.8" />
|
||||
</geometry>
|
||||
<material name="silver">
|
||||
<color rgba="0.75 0.75 0.75 1.0" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin xyz="-0.15 0.2 0.4" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<box size="0.03 0.03 0.8" />
|
||||
</geometry>
|
||||
</collision>
|
||||
|
||||
<!-- Right vertical profile -->
|
||||
<visual>
|
||||
<origin xyz="-0.15 -0.2 0.4" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<box size="0.03 0.03 0.8" />
|
||||
</geometry>
|
||||
<material name="silver" />
|
||||
</visual>
|
||||
<collision>
|
||||
<origin xyz="-0.15 -0.2 0.4" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<box size="0.03 0.03 0.8" />
|
||||
</geometry>
|
||||
</collision>
|
||||
|
||||
<!-- Middle shelf support structure -->
|
||||
<visual>
|
||||
<origin xyz="0.0 0.0 0.43" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<box size="0.33 0.43 0.02" />
|
||||
</geometry>
|
||||
<material name="wood">
|
||||
<color rgba="0.8 0.6 0.4 1.0" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin xyz="0.0 0.0 0.43" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<box size="0.33 0.43 0.02" />
|
||||
</geometry>
|
||||
</collision>
|
||||
|
||||
<!-- Top crossbar profile -->
|
||||
<visual>
|
||||
<origin xyz="-0.15 0.0 0.8" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<box size="0.03 0.4 0.03" />
|
||||
</geometry>
|
||||
<material name="silver" />
|
||||
</visual>
|
||||
<collision>
|
||||
<origin xyz="-0.15 0.0 0.8" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<box size="0.03 0.4 0.03" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
|
||||
<!-- Joint to attach frame to Panther base top plate (mount_link) -->
|
||||
<joint name="panther_to_frame_joint" type="fixed">
|
||||
<origin xyz="0.0 0.0 0.0" rpy="0.0 0.0 0.0" />
|
||||
<parent link="mount_link" />
|
||||
<child link="aluminum_frame" />
|
||||
</joint>
|
||||
|
||||
<!-- Joint to mount PiPER Arm on the middle shelf wooden board -->
|
||||
<joint name="frame_to_piper_joint" type="fixed">
|
||||
<origin xyz="${arm_x_offset} ${arm_y_offset} ${arm_z_offset}" rpy="${arm_roll} ${arm_pitch} ${arm_yaw}" />
|
||||
<parent link="aluminum_frame" />
|
||||
<child link="piper_base_link" />
|
||||
</joint>
|
||||
|
||||
<!-- Camera link representing the ZED 2i -->
|
||||
<link name="zed2i_camera_link">
|
||||
<inertial>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<mass value="0.16" />
|
||||
<inertia ixx="0.0001" ixy="0" ixz="0" iyy="0.0001" iyz="0" izz="0.0001" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<box size="0.03 0.17 0.03" />
|
||||
</geometry>
|
||||
<material name="black">
|
||||
<color rgba="0.1 0.1 0.1 1.0" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin xyz="0 0 0" rpy="0 0 0" />
|
||||
<geometry>
|
||||
<box size="0.03 0.17 0.03" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
|
||||
<!-- Joint to mount ZED 2i Camera on the top crossbar -->
|
||||
<joint name="frame_to_camera_joint" type="fixed">
|
||||
<origin xyz="${camera_x_offset} ${camera_y_offset} ${camera_z_offset}" rpy="${camera_roll} ${camera_pitch} ${camera_yaw}" />
|
||||
<parent link="aluminum_frame" />
|
||||
<child link="zed2i_camera_link" />
|
||||
</joint>
|
||||
|
||||
<!-- ROS 2 Control configuration for PiPER Arm -->
|
||||
<ros2_control name="piper_system" type="system">
|
||||
<hardware>
|
||||
<xacro:if value="$(arg use_sim)">
|
||||
<plugin>gz_ros2_control/GazeboSimSystem</plugin>
|
||||
</xacro:if>
|
||||
<xacro:unless value="$(arg use_sim)">
|
||||
<!-- Placeholder for real hardware, e.g. mock interface for planning -->
|
||||
<plugin>mock_components/GenericSystem</plugin>
|
||||
</xacro:unless>
|
||||
</hardware>
|
||||
<joint name="joint1">
|
||||
<command_interface name="position" />
|
||||
<state_interface name="position"><param name="initial_value">0.0</param></state_interface>
|
||||
<state_interface name="velocity" />
|
||||
</joint>
|
||||
<joint name="joint2">
|
||||
<command_interface name="position" />
|
||||
<state_interface name="position"><param name="initial_value">0.0</param></state_interface>
|
||||
<state_interface name="velocity" />
|
||||
</joint>
|
||||
<joint name="joint3">
|
||||
<command_interface name="position" />
|
||||
<state_interface name="position"><param name="initial_value">0.0</param></state_interface>
|
||||
<state_interface name="velocity" />
|
||||
</joint>
|
||||
<joint name="joint4">
|
||||
<command_interface name="position" />
|
||||
<state_interface name="position"><param name="initial_value">0.0</param></state_interface>
|
||||
<state_interface name="velocity" />
|
||||
</joint>
|
||||
<joint name="joint5">
|
||||
<command_interface name="position" />
|
||||
<state_interface name="position"><param name="initial_value">0.0</param></state_interface>
|
||||
<state_interface name="velocity" />
|
||||
</joint>
|
||||
<joint name="joint6">
|
||||
<command_interface name="position" />
|
||||
<state_interface name="position"><param name="initial_value">0.0</param></state_interface>
|
||||
<state_interface name="velocity" />
|
||||
</joint>
|
||||
<joint name="joint7">
|
||||
<command_interface name="position" />
|
||||
<state_interface name="position"><param name="initial_value">0.0</param></state_interface>
|
||||
<state_interface name="velocity" />
|
||||
</joint>
|
||||
<joint name="joint8">
|
||||
<command_interface name="position" />
|
||||
<state_interface name="position"><param name="initial_value">0.0</param></state_interface>
|
||||
<state_interface name="velocity" />
|
||||
</joint>
|
||||
</ros2_control>
|
||||
|
||||
</robot>
|
||||
@@ -0,0 +1,567 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<robot
|
||||
name="piper"
|
||||
xmlns:xacro="http://ros.org/wiki/xacro">
|
||||
<!-- arm -->
|
||||
<link
|
||||
name="piper_base_link">
|
||||
<inertial>
|
||||
<origin xyz="-0.00473641164191482 2.56829134630247E-05 0.041451518036016" rpy="0 0 0" />
|
||||
<mass value="1.02" />
|
||||
<inertia ixx="0.00267433" ixy="-0.00000073" ixz="-0.00017389" iyy="0.00282612" iyz="0.0000004" izz="0.00089624" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://piper_description/meshes/base_link.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.792156862745098 0.819607843137255 0.933333333333333 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://piper_description/meshes/base_link.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<link
|
||||
name="link1">
|
||||
<inertial>
|
||||
<origin xyz="0.00032 -0.00041 -0.00348" rpy="0 0 0" />
|
||||
<mass value="0.71" />
|
||||
<inertia ixx="0.00050027" ixy="0.00000078" ixz="0.00000626" iyy="0.00040879" iyz="0.00000462" izz="0.00045802" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://piper_description/meshes/link1.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.792156862745098 0.819607843137255 0.933333333333333 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://piper_description/meshes/link1.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint1"
|
||||
type="revolute">
|
||||
<origin
|
||||
xyz="0 0 0.123"
|
||||
rpy="0 0 0" />
|
||||
<parent
|
||||
link="piper_base_link" />
|
||||
<child
|
||||
link="link1" />
|
||||
<axis
|
||||
xyz="0 0 1" />
|
||||
<limit
|
||||
lower="-2.618"
|
||||
upper="2.618"
|
||||
effort="100"
|
||||
velocity="5" />
|
||||
</joint>
|
||||
<link
|
||||
name="link2">
|
||||
<inertial>
|
||||
<origin xyz="0.21852 -0.00861 0.00126" rpy="0 0 0" />
|
||||
<mass value="1.16" />
|
||||
<inertia ixx="0.00111915" ixy="0.00182916" ixz="0.00019233" iyy="0.06763251" iyz="0.00000767" izz="0.067559" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://piper_description/meshes/link2.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.792156862745098 0.819607843137255 0.933333333333333 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://piper_description/meshes/link2.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint2"
|
||||
type="revolute">
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="1.5708 -0.1359 -3.1416" />
|
||||
<!-- rpy="1.5708 -0.10095-0.03490659 -3.1416" /> -->
|
||||
<parent
|
||||
link="link1" />
|
||||
<child
|
||||
link="link2" />
|
||||
<axis
|
||||
xyz="0 0 1" />
|
||||
<limit
|
||||
lower="0"
|
||||
upper="3.14"
|
||||
effort="100"
|
||||
velocity="5" />
|
||||
</joint>
|
||||
<link
|
||||
name="link3">
|
||||
<inertial>
|
||||
<origin xyz="-0.01999 -0.14808 -0.00053" rpy="0 0 0" />
|
||||
<mass value="0.5" />
|
||||
<inertia ixx="0.01347608" ixy="0.00161034" ixz="0.00000066" iyy="0.00046377" iyz="0.00000162" izz="0.01363321" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://piper_description/meshes/link3.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.792156862745098 0.819607843137255 0.933333333333333 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://piper_description/meshes/link3.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint3"
|
||||
type="revolute">
|
||||
<origin
|
||||
xyz="0.28503 0 0"
|
||||
rpy="0 0 -1.7939" />
|
||||
<!-- rpy="0 0 -1.759-0.03490659" /> -->
|
||||
<parent
|
||||
link="link2" />
|
||||
<child
|
||||
link="link3" />
|
||||
<axis
|
||||
xyz="0 0 1" />
|
||||
<limit
|
||||
lower="-2.967"
|
||||
upper="0"
|
||||
effort="100"
|
||||
velocity="5" />
|
||||
</joint>
|
||||
<link
|
||||
name="link4">
|
||||
<inertial>
|
||||
<origin xyz="0.00013 -0.00076 -0.00394" rpy="0 0 0" />
|
||||
<mass value="0.38" />
|
||||
<inertia ixx="0.00017844" ixy="0.00000062" ixz="0.00000067" iyy="0.00018914" iyz="0.00000408" izz="0.00014613" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://piper_description/meshes/link4.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.792156862745098 0.819607843137255 0.933333333333333 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://piper_description/meshes/link4.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint4"
|
||||
type="revolute">
|
||||
<origin
|
||||
xyz="-0.021984 -0.25075 0"
|
||||
rpy="1.5708 0 0" />
|
||||
<parent
|
||||
link="link3" />
|
||||
<child
|
||||
link="link4" />
|
||||
<axis
|
||||
xyz="0 0 1" />
|
||||
<limit
|
||||
lower="-1.745"
|
||||
upper="1.745"
|
||||
effort="100"
|
||||
velocity="5" />
|
||||
</joint>
|
||||
<link
|
||||
name="link5">
|
||||
<inertial>
|
||||
<origin xyz="0.00018 -0.06104 -0.00227" rpy="0 0 0" />
|
||||
<mass value="0.383" />
|
||||
<inertia ixx="0.00172318" ixy="0.00000259" ixz="0.00000010" iyy="0.00017936" iyz="0.00000990" izz="0.00171172" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://piper_description/meshes/link5.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.792156862745098 0.819607843137255 0.933333333333333 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://piper_description/meshes/link5.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint5"
|
||||
type="revolute">
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="-1.5708 0 0" />
|
||||
<parent
|
||||
link="link4" />
|
||||
<child
|
||||
link="link5" />
|
||||
<axis
|
||||
xyz="0 0 1" />
|
||||
<limit
|
||||
lower="-1.22"
|
||||
upper="1.22"
|
||||
effort="100"
|
||||
velocity="5" />
|
||||
</joint>
|
||||
<link
|
||||
name="link6">
|
||||
<inertial>
|
||||
<origin xyz="-0.00003 0.00006 0.04618" rpy="0 0 0" />
|
||||
<mass value="0.007" />
|
||||
<inertia ixx="0.00152112" ixy="0.00000202" ixz="0.00000261" iyy="0.00138626" iyz="0.00000002" izz="0.00031152" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://piper_description/meshes/link6.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.898039215686275 0.917647058823529 0.929411764705882 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://piper_description/meshes/link6.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint6"
|
||||
type="revolute">
|
||||
<origin
|
||||
xyz="8.8259E-05 -0.091 0"
|
||||
rpy="1.5708 0 0" />
|
||||
<parent
|
||||
link="link5" />
|
||||
<child
|
||||
link="link6" />
|
||||
<axis
|
||||
xyz="0 0 1" />
|
||||
<limit
|
||||
lower="-2.0944"
|
||||
upper="2.0944"
|
||||
effort="100"
|
||||
velocity="3" />
|
||||
</joint>
|
||||
<link
|
||||
name="gripper_base">
|
||||
<inertial>
|
||||
<origin
|
||||
xyz="-0.000183807162235591 8.05033155577911E-05 0.0321436689908876"
|
||||
rpy="0 0 0" />
|
||||
<mass
|
||||
value="0.45" />
|
||||
<inertia
|
||||
ixx="0.00092934"
|
||||
ixy="0.00000034"
|
||||
ixz="-0.00000738"
|
||||
iyy="0.00071447"
|
||||
iyz="0.00000005"
|
||||
izz="0.00039442" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://piper_description/meshes/gripper_base.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.792156862745098 0.819607843137255 0.933333333333333 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://piper_description/meshes/gripper_base.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint6_to_gripper_base"
|
||||
type="fixed">
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<parent
|
||||
link="link6" />
|
||||
<child
|
||||
link="gripper_base" />
|
||||
</joint>
|
||||
<link
|
||||
name="link7">
|
||||
<inertial>
|
||||
<origin
|
||||
xyz="0.00065123185041968 -0.0491929869131989 0.00972258769184025"
|
||||
rpy="0 0 0" />
|
||||
<mass
|
||||
value="0.025" />
|
||||
<inertia
|
||||
ixx="0.00007371"
|
||||
ixy="-0.00000113"
|
||||
ixz="0.00000021"
|
||||
iyy="0.00000781"
|
||||
iyz="-0.00001372"
|
||||
izz="0.0000747" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://piper_description/meshes/link7.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.792156862745098 0.819607843137255 0.933333333333333 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://piper_description/meshes/link7.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint7"
|
||||
type="prismatic">
|
||||
<origin
|
||||
xyz="0 0 0.1358"
|
||||
rpy="1.5708 0 0" />
|
||||
<parent
|
||||
link="gripper_base" />
|
||||
<child
|
||||
link="link7" />
|
||||
<axis
|
||||
xyz="0 0 1" />
|
||||
<limit
|
||||
lower="0"
|
||||
upper="0.035"
|
||||
effort="10"
|
||||
velocity="1" />
|
||||
</joint>
|
||||
<link
|
||||
name="link8">
|
||||
<inertial>
|
||||
<origin
|
||||
xyz="0.000651231850419722 -0.0491929869131991 0.00972258769184024"
|
||||
rpy="0 0 0" />
|
||||
<mass
|
||||
value="0.025" />
|
||||
<inertia
|
||||
ixx="0.00007371"
|
||||
ixy="-0.00000113"
|
||||
ixz="0.00000021"
|
||||
iyy="0.00000781"
|
||||
iyz="-0.00001372"
|
||||
izz="0.0000747" />
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://piper_description/meshes/link8.STL" />
|
||||
</geometry>
|
||||
<material
|
||||
name="">
|
||||
<color
|
||||
rgba="0.792156862745098 0.819607843137255 0.933333333333333 1" />
|
||||
</material>
|
||||
</visual>
|
||||
<collision>
|
||||
<origin
|
||||
xyz="0 0 0"
|
||||
rpy="0 0 0" />
|
||||
<geometry>
|
||||
<mesh
|
||||
filename="package://piper_description/meshes/link8.STL" />
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
<joint
|
||||
name="joint8"
|
||||
type="prismatic">
|
||||
<origin
|
||||
xyz="0 0 0.1358"
|
||||
rpy="1.5708 0 -3.1416" />
|
||||
<parent
|
||||
link="gripper_base" />
|
||||
<child
|
||||
link="link8" />
|
||||
<axis
|
||||
xyz="0 0 -1" />
|
||||
<limit
|
||||
lower="-0.035"
|
||||
upper="0"
|
||||
effort="10"
|
||||
velocity="1" />
|
||||
</joint>
|
||||
|
||||
<!-- controller -->
|
||||
<xacro:macro name="transmission_block" params="tran_name joint_name motor_name">
|
||||
<transmission name="${tran_name}">
|
||||
<type>transmission_interface/SimpleTransmission</type>
|
||||
<joint name="${joint_name}">
|
||||
<hardwareInterface>hardware_interface/PositionJointInterface</hardwareInterface>
|
||||
</joint>
|
||||
<actuator name="$motor_name">
|
||||
<hardwareInterface>hardware_interface/PositionJointInterface</hardwareInterface>
|
||||
<mechanicalReduction>1</mechanicalReduction>
|
||||
</actuator>
|
||||
</transmission>
|
||||
</xacro:macro>
|
||||
|
||||
<xacro:transmission_block tran_name="tran1" joint_name="joint1" motor_name="motor1"/>
|
||||
<xacro:transmission_block tran_name="tran2" joint_name="joint2" motor_name="motor2"/>
|
||||
<xacro:transmission_block tran_name="tran3" joint_name="joint3" motor_name="motor3"/>
|
||||
<xacro:transmission_block tran_name="tran4" joint_name="joint4" motor_name="motor4"/>
|
||||
<xacro:transmission_block tran_name="tran5" joint_name="joint5" motor_name="motor5"/>
|
||||
<xacro:transmission_block tran_name="tran6" joint_name="joint6" motor_name="motor6"/>
|
||||
<xacro:transmission_block tran_name="tran7" joint_name="joint7" motor_name="motor7"/>
|
||||
<xacro:transmission_block tran_name="tran8" joint_name="joint8" motor_name="motor8"/>
|
||||
<!-- gazebo -->
|
||||
<!-- <gazebo>
|
||||
<plugin name="gazebo_ros2_control" filename="libgazebo_ros2_control.so">
|
||||
<robotNamespace>/piper</robotNamespace>
|
||||
<parameters> $(find piper_gazebo)/config/ros2_controllers.yaml </parameters>
|
||||
<legacyModeNS>true</legacyModeNS>
|
||||
</plugin>
|
||||
</gazebo> -->
|
||||
|
||||
<!-- <gazebo reference="base_link">
|
||||
<material>Gazebo/Black</material>
|
||||
</gazebo>
|
||||
|
||||
<gazebo reference="link1">
|
||||
<material>Gazebo/White</material>
|
||||
</gazebo>
|
||||
|
||||
<gazebo reference="link2">
|
||||
<material>Gazebo/White</material>
|
||||
</gazebo>
|
||||
|
||||
<gazebo reference="link3">
|
||||
<material>Gazebo/White</material>
|
||||
</gazebo>
|
||||
|
||||
<gazebo reference="link4">
|
||||
<material>Gazebo/Black</material>
|
||||
</gazebo>
|
||||
|
||||
<gazebo reference="link5">
|
||||
<material>Gazebo/White</material>
|
||||
</gazebo>
|
||||
|
||||
<gazebo reference="link6">
|
||||
<material>Gazebo/White</material>
|
||||
</gazebo>
|
||||
|
||||
<gazebo reference="link7">
|
||||
<material>Gazebo/Orange</material>
|
||||
</gazebo>
|
||||
|
||||
<gazebo reference="link8">
|
||||
<material>Gazebo/Orange</material>
|
||||
</gazebo> -->
|
||||
</robot>
|
||||
@@ -0,0 +1,12 @@
|
||||
cmake_minimum_required(VERSION 3.8)
|
||||
project(panther_piper_moveit_config)
|
||||
|
||||
find_package(ament_cmake REQUIRED)
|
||||
|
||||
install(DIRECTORY
|
||||
config
|
||||
launch
|
||||
DESTINATION share/${PROJECT_NAME}
|
||||
)
|
||||
|
||||
ament_package()
|
||||
@@ -0,0 +1,8 @@
|
||||
initial_positions:
|
||||
joint1: 0
|
||||
joint2: 0
|
||||
joint3: 0
|
||||
joint4: 0
|
||||
joint5: 0
|
||||
joint6: 0
|
||||
joint7: 0
|
||||
@@ -0,0 +1,39 @@
|
||||
default_velocity_scaling_factor: 0.1
|
||||
default_acceleration_scaling_factor: 0.1
|
||||
|
||||
joint_limits:
|
||||
joint1:
|
||||
has_velocity_limits: true
|
||||
max_velocity: 5.0
|
||||
has_acceleration_limits: false
|
||||
max_acceleration: 0
|
||||
joint2:
|
||||
has_velocity_limits: true
|
||||
max_velocity: 5.0
|
||||
has_acceleration_limits: false
|
||||
max_acceleration: 0
|
||||
joint3:
|
||||
has_velocity_limits: true
|
||||
max_velocity: 5.0
|
||||
has_acceleration_limits: false
|
||||
max_acceleration: 0
|
||||
joint4:
|
||||
has_velocity_limits: true
|
||||
max_velocity: 5.0
|
||||
has_acceleration_limits: false
|
||||
max_acceleration: 0
|
||||
joint5:
|
||||
has_velocity_limits: true
|
||||
max_velocity: 5.0
|
||||
has_acceleration_limits: false
|
||||
max_acceleration: 0
|
||||
joint6:
|
||||
has_velocity_limits: true
|
||||
max_velocity: 3.0
|
||||
has_acceleration_limits: false
|
||||
max_acceleration: 0
|
||||
joint7:
|
||||
has_velocity_limits: true
|
||||
max_velocity: 1.0
|
||||
has_acceleration_limits: false
|
||||
max_acceleration: 0
|
||||
@@ -0,0 +1,8 @@
|
||||
arm:
|
||||
kinematics_solver: kdl_kinematics_plugin/KDLKinematicsPlugin
|
||||
kinematics_solver_search_resolution: 0.005
|
||||
kinematics_solver_timeout: 0.005
|
||||
gripper:
|
||||
kinematics_solver: kdl_kinematics_plugin/KDLKinematicsPlugin
|
||||
kinematics_solver_search_resolution: 0.005
|
||||
kinematics_solver_timeout: 0.005
|
||||
@@ -0,0 +1,51 @@
|
||||
Panels:
|
||||
- Class: rviz_common/Displays
|
||||
Name: Displays
|
||||
Property Tree Widget:
|
||||
Expanded:
|
||||
- /MotionPlanning1
|
||||
- Class: rviz_common/Help
|
||||
Name: Help
|
||||
- Class: rviz_common/Views
|
||||
Name: Views
|
||||
Visualization Manager:
|
||||
Displays:
|
||||
- Class: rviz_default_plugins/Grid
|
||||
Name: Grid
|
||||
Value: true
|
||||
- Class: moveit_rviz_plugin/MotionPlanning
|
||||
Name: MotionPlanning
|
||||
Planned Path:
|
||||
Loop Animation: true
|
||||
State Display Time: 0.05 s
|
||||
Trajectory Topic: display_planned_path
|
||||
Planning Scene Topic: monitored_planning_scene
|
||||
Robot Description: robot_description
|
||||
Scene Geometry:
|
||||
Scene Alpha: 1
|
||||
Scene Robot:
|
||||
Robot Alpha: 0.5
|
||||
Value: true
|
||||
Global Options:
|
||||
Fixed Frame: world
|
||||
Tools:
|
||||
- Class: rviz_default_plugins/Interact
|
||||
- Class: rviz_default_plugins/MoveCamera
|
||||
- Class: rviz_default_plugins/Select
|
||||
Value: true
|
||||
Views:
|
||||
Current:
|
||||
Class: rviz_default_plugins/Orbit
|
||||
Distance: 2.0
|
||||
Focal Point:
|
||||
X: -0.1
|
||||
Y: 0.25
|
||||
Z: 0.30
|
||||
Name: Current View
|
||||
Pitch: 0.5
|
||||
Target Frame: world
|
||||
Yaw: -0.623
|
||||
Window Geometry:
|
||||
Height: 975
|
||||
QMainWindow State: 000000ff00000000fd0000000100000000000002b400000375fc0200000005fb00000044004d006f00740069006f006e0050006c0061006e006e0069006e00670020002d0020005400720061006a006500630074006f0072007900200053006c00690064006500720000000000ffffffff0000004100fffffffb000000100044006900730070006c006100790073010000003d00000123000000c900fffffffb0000001c004d006f00740069006f006e0050006c0061006e006e0069006e00670100000166000001910000018800fffffffb0000000800480065006c0070000000029a0000006e0000006e00fffffffb0000000a0056006900650077007301000002fd000000b5000000a400ffffff000001f60000037500000004000000040000000800000008fc0000000100000002000000010000000a0054006f006f006c00730100000000ffffffff0000000000000000
|
||||
Width: 1200
|
||||
@@ -0,0 +1,25 @@
|
||||
moveit_controller_manager: moveit_simple_controller_manager/MoveItSimpleControllerManager
|
||||
|
||||
moveit_simple_controller_manager:
|
||||
update_rate: 100
|
||||
controller_names:
|
||||
- arm_controller
|
||||
- gripper_controller
|
||||
|
||||
arm_controller:
|
||||
type: FollowJointTrajectory
|
||||
action_ns: follow_joint_trajectory
|
||||
default: true
|
||||
joints:
|
||||
- joint1
|
||||
- joint2
|
||||
- joint3
|
||||
- joint4
|
||||
- joint5
|
||||
- joint6
|
||||
gripper_controller:
|
||||
type: FollowJointTrajectory
|
||||
action_ns: follow_joint_trajectory
|
||||
default: true
|
||||
joints:
|
||||
- joint7
|
||||
@@ -0,0 +1,68 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<robot name="panther_piper">
|
||||
<!--GROUPS: Representation of a set of joints and links.-->
|
||||
<group name="arm">
|
||||
<chain base_link="piper_base_link" tip_link="link6"/>
|
||||
</group>
|
||||
<group name="gripper">
|
||||
<chain base_link="gripper_base" tip_link="link7"/>
|
||||
</group>
|
||||
<!--GROUP STATES-->
|
||||
<group_state name="zero" group="arm">
|
||||
<joint name="joint1" value="0"/>
|
||||
<joint name="joint2" value="0"/>
|
||||
<joint name="joint3" value="0"/>
|
||||
<joint name="joint4" value="0"/>
|
||||
<joint name="joint5" value="0"/>
|
||||
<joint name="joint6" value="0"/>
|
||||
</group_state>
|
||||
<group_state name="open" group="gripper">
|
||||
<joint name="joint7" value="0.035"/>
|
||||
</group_state>
|
||||
<group_state name="close" group="gripper">
|
||||
<joint name="joint7" value="0"/>
|
||||
</group_state>
|
||||
|
||||
<!--DISABLE COLLISIONS-->
|
||||
<!-- Internal Arm Collisions (from original SRDF) -->
|
||||
<disable_collisions link1="piper_base_link" link2="link1" reason="Adjacent"/>
|
||||
<disable_collisions link1="piper_base_link" link2="link2" reason="Never"/>
|
||||
<disable_collisions link1="piper_base_link" link2="link3" reason="Never"/>
|
||||
<disable_collisions link1="gripper_base" link2="link3" reason="Never"/>
|
||||
<disable_collisions link1="gripper_base" link2="link4" reason="Never"/>
|
||||
<disable_collisions link1="gripper_base" link2="link5" reason="Never"/>
|
||||
<disable_collisions link1="gripper_base" link2="link6" reason="Adjacent"/>
|
||||
<disable_collisions link1="gripper_base" link2="link7" reason="Adjacent"/>
|
||||
<disable_collisions link1="gripper_base" link2="link8" reason="Adjacent"/>
|
||||
<disable_collisions link1="link1" link2="link2" reason="Adjacent"/>
|
||||
<disable_collisions link1="link1" link2="link3" reason="Never"/>
|
||||
<disable_collisions link1="link2" link2="link3" reason="Adjacent"/>
|
||||
<disable_collisions link1="link2" link2="link4" reason="Never"/>
|
||||
<disable_collisions link1="link3" link2="link4" reason="Adjacent"/>
|
||||
<disable_collisions link1="link3" link2="link5" reason="Never"/>
|
||||
<disable_collisions link1="link3" link2="link6" reason="Never"/>
|
||||
<disable_collisions link1="link3" link2="link7" reason="Never"/>
|
||||
<disable_collisions link1="link3" link2="link8" reason="Never"/>
|
||||
<disable_collisions link1="link4" link2="link5" reason="Adjacent"/>
|
||||
<disable_collisions link1="link4" link2="link6" reason="Never"/>
|
||||
<disable_collisions link1="link4" link2="link7" reason="Never"/>
|
||||
<disable_collisions link1="link4" link2="link8" reason="Never"/>
|
||||
<disable_collisions link1="link5" link2="link6" reason="Adjacent"/>
|
||||
<disable_collisions link1="link5" link2="link7" reason="Never"/>
|
||||
<disable_collisions link1="link5" link2="link8" reason="Never"/>
|
||||
<disable_collisions link1="link6" link2="link7" reason="Never"/>
|
||||
<disable_collisions link1="link6" link2="link8" reason="Never"/>
|
||||
<disable_collisions link1="link7" link2="link8" reason="Default"/>
|
||||
|
||||
<!-- Arm to Custom Aluminum Frame & Camera Collisions -->
|
||||
<disable_collisions link1="piper_base_link" link2="aluminum_frame" reason="Adjacent"/>
|
||||
<disable_collisions link1="link1" link2="aluminum_frame" reason="Never"/>
|
||||
<disable_collisions link1="link2" link2="aluminum_frame" reason="Never"/>
|
||||
<disable_collisions link1="zed2i_camera_link" link2="aluminum_frame" reason="Adjacent"/>
|
||||
|
||||
<!-- Custom Aluminum Frame to Panther Base Collisions -->
|
||||
<disable_collisions link1="aluminum_frame" link2="body_link" reason="Adjacent"/>
|
||||
<disable_collisions link1="piper_base_link" link2="body_link" reason="Never"/>
|
||||
<disable_collisions link1="link1" link2="body_link" reason="Never"/>
|
||||
<disable_collisions link1="zed2i_camera_link" link2="body_link" reason="Never"/>
|
||||
</robot>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0"?>
|
||||
<robot name="panther_piper" xmlns:xacro="http://wiki.ros.org/xacro">
|
||||
<xacro:include filename="$(find panther_piper_description)/urdf/panther_piper.urdf.xacro" />
|
||||
</robot>
|
||||
@@ -0,0 +1,6 @@
|
||||
# Limits for the Pilz planner
|
||||
cartesian_limits:
|
||||
max_trans_vel: 1.0
|
||||
max_trans_acc: 2.25
|
||||
max_trans_dec: -5.0
|
||||
max_rot_vel: 1.57
|
||||
@@ -0,0 +1,16 @@
|
||||
import os
|
||||
from ament_index_python.packages import get_package_share_directory
|
||||
from moveit_configs_utils import MoveItConfigsBuilder
|
||||
from moveit_configs_utils.launches import generate_demo_launch
|
||||
|
||||
def generate_launch_description():
|
||||
moveit_config = (
|
||||
MoveItConfigsBuilder("panther_piper", package_name="panther_piper_moveit_config")
|
||||
.robot_description(file_path=os.path.join(
|
||||
get_package_share_directory("panther_piper_description"),
|
||||
"urdf",
|
||||
"panther_piper.urdf.xacro"
|
||||
), mappings={"use_sim": "true"})
|
||||
.to_moveit_configs()
|
||||
)
|
||||
return generate_demo_launch(moveit_config)
|
||||
@@ -0,0 +1,42 @@
|
||||
import os
|
||||
from ament_index_python.packages import get_package_share_directory
|
||||
from moveit_configs_utils import MoveItConfigsBuilder
|
||||
from launch import LaunchDescription
|
||||
from launch_ros.actions import Node
|
||||
|
||||
def generate_launch_description():
|
||||
moveit_config = (
|
||||
MoveItConfigsBuilder("panther_piper", package_name="panther_piper_moveit_config")
|
||||
.robot_description(file_path=os.path.join(
|
||||
get_package_share_directory("panther_piper_description"),
|
||||
"urdf",
|
||||
"panther_piper.urdf.xacro"
|
||||
), mappings={"use_sim": "true"})
|
||||
.to_moveit_configs()
|
||||
)
|
||||
|
||||
# Compile move_group parameters
|
||||
move_group_params = [
|
||||
moveit_config.to_dict(),
|
||||
{
|
||||
"publish_robot_description_semantic": True,
|
||||
"allow_trajectory_execution": True,
|
||||
"capabilities": "",
|
||||
"disable_capabilities": "",
|
||||
"publish_planning_scene": True,
|
||||
"publish_geometry_updates": True,
|
||||
"publish_state_updates": True,
|
||||
"publish_transforms_updates": True,
|
||||
"monitor_dynamics": False,
|
||||
"use_sim_time": True,
|
||||
}
|
||||
]
|
||||
|
||||
return LaunchDescription([
|
||||
Node(
|
||||
package="moveit_ros_move_group",
|
||||
executable="move_group",
|
||||
output="screen",
|
||||
parameters=move_group_params,
|
||||
)
|
||||
])
|
||||
@@ -0,0 +1,39 @@
|
||||
import os
|
||||
from ament_index_python.packages import get_package_share_directory
|
||||
from moveit_configs_utils import MoveItConfigsBuilder
|
||||
from launch import LaunchDescription
|
||||
from launch_ros.actions import Node
|
||||
|
||||
def generate_launch_description():
|
||||
moveit_config = (
|
||||
MoveItConfigsBuilder("panther_piper", package_name="panther_piper_moveit_config")
|
||||
.robot_description(file_path=os.path.join(
|
||||
get_package_share_directory("panther_piper_description"),
|
||||
"urdf",
|
||||
"panther_piper.urdf.xacro"
|
||||
), mappings={"use_sim": "true"})
|
||||
.to_moveit_configs()
|
||||
)
|
||||
|
||||
rviz_parameters = [
|
||||
moveit_config.planning_pipelines,
|
||||
moveit_config.robot_description_kinematics,
|
||||
moveit_config.joint_limits,
|
||||
{"use_sim_time": True}
|
||||
]
|
||||
|
||||
rviz_config = os.path.join(
|
||||
get_package_share_directory("panther_piper_moveit_config"),
|
||||
"config",
|
||||
"moveit.rviz"
|
||||
)
|
||||
|
||||
return LaunchDescription([
|
||||
Node(
|
||||
package="rviz2",
|
||||
executable="rviz2",
|
||||
output="screen",
|
||||
arguments=["-d", rviz_config],
|
||||
parameters=rviz_parameters,
|
||||
)
|
||||
])
|
||||
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0"?>
|
||||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
|
||||
<package format="3">
|
||||
<name>panther_piper_moveit_config</name>
|
||||
<version>0.0.1</version>
|
||||
<description>MoveIt 2 configuration package for Panther UGV with PiPER arm</description>
|
||||
<maintainer email="user@todo.todo">User</maintainer>
|
||||
<license>Apache-2.0</license>
|
||||
|
||||
<buildtool_depend>ament_cmake</buildtool_depend>
|
||||
|
||||
<exec_depend>moveit_ros_move_group</exec_depend>
|
||||
<exec_depend>moveit_kinematics</exec_depend>
|
||||
<exec_depend>moveit_planners_ompl</exec_depend>
|
||||
<exec_depend>moveit_simple_controller_manager</exec_depend>
|
||||
<exec_depend>joint_state_publisher</exec_depend>
|
||||
<exec_depend>robot_state_publisher</exec_depend>
|
||||
<exec_depend>rviz2</exec_depend>
|
||||
|
||||
<export>
|
||||
<build_type>ament_cmake</build_type>
|
||||
</export>
|
||||
</package>
|
||||
Reference in New Issue
Block a user