Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jazzy対応(MoveitConfigsBuilder) #78

Open
wants to merge 41 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
587ec53
jazzy対応(MoveitConfigsBuilder)
mizonon Jul 19, 2024
1374d50
不要なコメント削除
mizonon Aug 9, 2024
6b10a74
不要ファイルのignore
mizonon Aug 13, 2024
89bdf8b
crane_plus_moveit_config/launchの中の不要ファイル削除
mizonon Aug 13, 2024
96186f6
default_***_scaling_factorを0.1->1.0に変更
mizonon Aug 15, 2024
e3898ed
setup assistantによる書換わりを元の書き方に修正
mizonon Aug 15, 2024
553e522
exampleのdemo.lauch修正
mizonon Aug 15, 2024
384f2b4
run_move_group.rviz削除
mizonon Aug 15, 2024
7147e27
sensors_3d.yaml削除
mizonon Aug 15, 2024
de86b8d
solverを元に戻す
mizonon Aug 15, 2024
0314d62
.gitignore変更
mizonon Aug 15, 2024
185c6bd
setup_assistant関連のファイル追加
mizonon Aug 15, 2024
2e01610
ciのjazzy対応
mizonon Aug 15, 2024
4ba5ed8
run_move_froup.lauch.pyの整理
mizonon Aug 15, 2024
92f9340
不要な権限変更
mizonon Aug 15, 2024
b6e6962
不要な権限変更
mizonon Aug 15, 2024
bde95e1
不要なscript削除
mizonon Aug 16, 2024
9013d35
kinematicの設定修正
mizonon Aug 16, 2024
82a96db
ソルバーをKDLに戻す
mizonon Aug 20, 2024
91add60
warehouse_ros_mongoをcrane_plus_moveit_configのpackage.xmlに含めない
mizonon Sep 19, 2024
1c3b113
レビュー結果反映
mizonon Oct 4, 2024
b227184
README.md(jazzy対応&バイナリインストール方法追加)
mizonon Oct 21, 2024
88f4313
.dockerのREADME.mdのjazzy対応
mizonon Oct 21, 2024
e9a548f
CI対応(copyright追加)
mizonon Oct 21, 2024
bf56ec0
CI対応
mizonon Oct 22, 2024
a74f3b7
CI対応(setup_assistant.launch.py)
mizonon Oct 22, 2024
a671d5e
CI対応(package.xmlの不要な部分削除)
mizonon Oct 22, 2024
86513fb
コメントをjazzyに合わせる
mizonon Oct 22, 2024
2de4b14
ign fuelでgazeboのモデルをダウンロードする記述削除
mizonon Oct 22, 2024
8a157cc
ciのDockerイメージをjazzyに対応
mizonon Oct 22, 2024
f1bfe95
他の製品と設定を共通化
mizonon Oct 22, 2024
e6866a2
crane_plus_description/package.xmlのauthorに溝口を追加
mizonon Oct 23, 2024
f2e153a
ompl_planning.yamlに抜けていた記述追加
mizonon Oct 23, 2024
4d1c0f9
.gitignoreの末尾に.vscode追加
mizonon Nov 13, 2024
cfe7373
旧115行目の改行復活
mizonon Nov 13, 2024
35a0321
ファイル名変更controllers.yaml->moveit_controllers.yaml
mizonon Nov 13, 2024
538f8b3
kinematics_solver_attemptsの指定削除
mizonon Nov 13, 2024
ad45926
RobotDescriptionLoader対応とmoveit_configの不必要な定義削除
mizonon Nov 13, 2024
a9fb79e
robot_description_kinematicsの設定を削除
mizonon Nov 13, 2024
4fc16b3
削除したrun_move_group.rvizの内容をmoveit.rvizとして反映
mizonon Nov 13, 2024
d6a4e16
Sciurus17のrun_move_group.launch.pyの書き方に合わせる
mizonon Nov 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/industrial_ci.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
env:
- { ROS_DISTRO: humble, ROS_REPO: ros }
- { ROS_DISTRO: jazzy, ROS_REPO: ros }
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 1 addition & 3 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,4 @@ docs/_build/

# PyBuilder
target/
.pytest_cache

Kuwamai marked this conversation as resolved.
Show resolved Hide resolved
.vscode
.pytest_cache
3 changes: 1 addition & 2 deletions crane_plus_description/package.xml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>ament_cmake_python</buildtool_depend>

<depend>gazebo_ros2_control</depend>
<depend>ign_ros2_control</depend>
<depend>gz_ros2_control</depend>
<depend>joint_state_publisher_gui</depend>
<depend>launch</depend>
<depend>robot_state_publisher</depend>
Expand Down
2 changes: 1 addition & 1 deletion crane_plus_examples/src/aruco_detection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "sensor_msgs/msg/image.hpp"
#include "opencv2/opencv.hpp"
#include "opencv2/aruco.hpp"
#include "cv_bridge/cv_bridge.h"
#include "cv_bridge/cv_bridge.hpp"
#include "tf2/LinearMath/Quaternion.h"
#include "tf2/LinearMath/Matrix3x3.h"
#include "tf2_ros/transform_broadcaster.h"
Expand Down
4 changes: 2 additions & 2 deletions crane_plus_examples/src/color_detection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include "tf2_ros/transform_broadcaster.h"
#include "opencv2/opencv.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "cv_bridge/cv_bridge.h"
#include "image_geometry/pinhole_camera_model.h"
#include "cv_bridge/cv_bridge.hpp"
#include "image_geometry/pinhole_camera_model.hpp"
using std::placeholders::_1;

class ImageSubscriber : public rclcpp::Node
Expand Down
25 changes: 25 additions & 0 deletions crane_plus_moveit_config/.setup_assistant
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
moveit_setup_assistant_config:
urdf:
package: crane_plus_description
relative_path: urdf/crane_plus.urdf.xacro
srdf:
relative_path: config/crane_plus.srdf
package_settings:
author_name: RT Corporation
author_email: [email protected]
generated_timestamp: 1721799427
control_xacro:
command:
- position
state:
- position
- velocity
modified_urdf:
xacros:
- control_xacro
control_xacro:
command:
- position
state:
- position
- velocity
2 changes: 1 addition & 1 deletion crane_plus_moveit_config/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ if(BUILD_TESTING)
ament_lint_auto_find_test_dependencies()
endif()

ament_package()
ament_package()
41 changes: 23 additions & 18 deletions crane_plus_moveit_config/config/controllers.yaml
Kuwamai marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
controller_names:
- crane_plus_arm_controller
- crane_plus_gripper_controller
# MoveIt uses this configuration for controller management
moveit_controller_manager: moveit_simple_controller_manager/MoveItSimpleControllerManager

crane_plus_arm_controller:
action_ns: follow_joint_trajectory
type: FollowJointTrajectory
default: true
joints:
- crane_plus_joint1
- crane_plus_joint2
- crane_plus_joint3
- crane_plus_joint4
moveit_simple_controller_manager:
controller_names:
- crane_plus_arm_controller
- crane_plus_gripper_controller

crane_plus_arm_controller:
action_ns: follow_joint_trajectory
type: FollowJointTrajectory
default: true
joints:
- crane_plus_joint1
- crane_plus_joint2
- crane_plus_joint3
- crane_plus_joint4

crane_plus_gripper_controller:
action_ns: follow_joint_trajectory
type: FollowJointTrajectory
default: true
joints:
- crane_plus_joint_hand

crane_plus_gripper_controller:
action_ns: follow_joint_trajectory
type: FollowJointTrajectory
default: true
joints:
- crane_plus_joint_hand
41 changes: 20 additions & 21 deletions crane_plus_moveit_config/config/crane_plus.srdf
Original file line number Diff line number Diff line change
@@ -1,43 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--This does not replace URDF, and is not an extension of URDF.
This is a format for representing semantic information about the robot structure.
A URDF file must exist for this robot as well, where the joints and the links that are referenced are defined
-->
<robot name="crane_plus">
<robot name="crane_plus">
<!--GROUPS: Representation of a set of joints and links. This can be useful for specifying DOF to plan for, defining arms, end effectors, etc-->
<!--LINKS: When a link is specified, the parent joint of that link (if it exists) is automatically included-->
<!--JOINTS: When a joint is specified, the child link of that joint (which will always exist) is automatically included-->
<!--CHAINS: When a chain is specified, all the links along the chain (including endpoints) are included in the group. Additionally, all the joints that are parents to included links are also included. This means that joints along the chain and the parent joint of the base link are included in the group-->
<!--SUBGROUPS: Groups can also be formed by referencing to already defined group names-->
<group name="arm">
<chain base_link="crane_plus_base" tip_link="crane_plus_link4" />
<chain base_link="crane_plus_base" tip_link="crane_plus_link4"/>
</group>
<group name="gripper">
<link name="crane_plus_link_hand" />
<joint name="crane_plus_joint_hand" />
<link name="crane_plus_link_hand"/>
<joint name="crane_plus_joint_hand"/>
</group>
<!--GROUP STATES: Purpose: Define a named state for a particular group, in terms of joint values. This is useful to define states like 'folded arms'-->
<group_state name="vertical" group="arm">
<joint name="crane_plus_joint1" value="0" />
<joint name="crane_plus_joint2" value="0" />
<joint name="crane_plus_joint3" value="0" />
<joint name="crane_plus_joint4" value="0" />
<joint name="crane_plus_joint1" value="0"/>
<joint name="crane_plus_joint2" value="0"/>
<joint name="crane_plus_joint3" value="0"/>
<joint name="crane_plus_joint4" value="0"/>
</group_state>
<group_state name="home" group="arm">
<joint name="crane_plus_joint1" value="0.0" />
<joint name="crane_plus_joint2" value="-1.16" />
<joint name="crane_plus_joint3" value="-2.01" />
<joint name="crane_plus_joint4" value="-0.73" />
<joint name="crane_plus_joint1" value="0"/>
<joint name="crane_plus_joint2" value="-1.16"/>
<joint name="crane_plus_joint3" value="-2.01"/>
<joint name="crane_plus_joint4" value="-0.73"/>
</group_state>
<!--END EFFECTOR: Purpose: Represent information about an end effector.-->
<end_effector name="end_effector" parent_link="crane_plus_link4" group="gripper" />
<end_effector name="end_effector" parent_link="crane_plus_link4" group="gripper"/>
<!--VIRTUAL JOINT: Purpose: this element defines a virtual joint between a robot link and an external frame of reference (considered fixed with respect to the robot)-->
<virtual_joint name="table" type="fixed" parent_frame="world" child_link="base_link" />
<virtual_joint name="table" type="fixed" parent_frame="world" child_link="base_link"/>
<!--DISABLE COLLISIONS: By default it is assumed that any link of the robot could potentially come into collision with any other link in the robot. This tag disables collision checking between a specified pair of links. -->
<disable_collisions link1="crane_plus_base" link2="crane_plus_link1" reason="Adjacent" />
<disable_collisions link1="crane_plus_link1" link2="crane_plus_link2" reason="Adjacent" />
<disable_collisions link1="crane_plus_link2" link2="crane_plus_link3" reason="Adjacent" />
<disable_collisions link1="crane_plus_link3" link2="crane_plus_link4" reason="Adjacent" />
<disable_collisions link1="crane_plus_link4" link2="crane_plus_link_hand" reason="Adjacent" />

<disable_collisions link1="crane_plus_base" link2="crane_plus_link1" reason="Adjacent"/>
<disable_collisions link1="crane_plus_link1" link2="crane_plus_link2" reason="Adjacent"/>
<disable_collisions link1="crane_plus_link2" link2="crane_plus_link3" reason="Adjacent"/>
<disable_collisions link1="crane_plus_link3" link2="crane_plus_link4" reason="Adjacent"/>
<disable_collisions link1="crane_plus_link4" link2="crane_plus_link_hand" reason="Adjacent"/>
</robot>
36 changes: 36 additions & 0 deletions crane_plus_moveit_config/config/joint_limits.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# joint_limits.yaml allows the dynamics properties specified in the URDF to be overwritten or augmented as needed

# For beginners, we downscale velocity and acceleration limits.
# You can always specify higher scaling factors (<= 1.0) in your motion requests. # Increase the values below to 1.0 to always move at maximum speed.
default_velocity_scaling_factor: 1.0
default_acceleration_scaling_factor: 1.0

# Specific joint properties can be changed with the keys [max_position, min_position, max_velocity, max_acceleration]
# Joint limits can be turned off with [has_velocity_limits, has_acceleration_limits]
joint_limits:
crane_plus_joint1:
has_velocity_limits: true
max_velocity: 2.0
has_acceleration_limits: true
max_acceleration: 1.0
crane_plus_joint2:
has_velocity_limits: true
max_velocity: 2.0
has_acceleration_limits: true
max_acceleration: 1.0
crane_plus_joint3:
has_velocity_limits: true
max_velocity: 2.0
has_acceleration_limits: true
max_acceleration: 1.0
crane_plus_joint4:
has_velocity_limits: true
max_velocity: 2.0
has_acceleration_limits: true
max_acceleration: 1.0
crane_plus_joint_hand:
has_velocity_limits: true
max_velocity: 2.0
has_acceleration_limits: true
max_acceleration: 1.0

4 changes: 2 additions & 2 deletions crane_plus_moveit_config/config/kinematics.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
arm:
kinematics_solver: lma_kinematics_plugin/LMAKinematicsPlugin
kinematics_solver_attempts: 10
kinematics_solver: kdl_kinematics_plugin/KDLKinematicsPlugin
Kuwamai marked this conversation as resolved.
Show resolved Hide resolved
kinematics_solver_search_resolution: 0.005
kinematics_solver_timeout: 0.005
kinematics_solver_attempts: 3
Kuwamai marked this conversation as resolved.
Show resolved Hide resolved
51 changes: 51 additions & 0 deletions crane_plus_moveit_config/config/moveit.rviz
Kuwamai marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions crane_plus_moveit_config/config/ompl_planning.yaml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
planning_plugins:
- ompl_interface/OMPLPlanner
# To optionally use Ruckig for jerk-limited smoothing, add this line to the request adapters below
# default_planning_request_adapters/AddRuckigTrajectorySmoothing
request_adapters:
- default_planning_request_adapters/ResolveConstraintFrames
- default_planning_request_adapters/ValidateWorkspaceBounds
- default_planning_request_adapters/CheckStartStateBounds
- default_planning_request_adapters/CheckStartStateCollision
response_adapters:
- default_planning_response_adapters/AddTimeOptimalParameterization
- default_planning_response_adapters/ValidateSolution
- default_planning_response_adapters/DisplayMotionPath

start_state_max_bounds_error: 0.1

planner_configs:
SBLkConfigDefault:
type: geometric::SBL
Expand Down
6 changes: 6 additions & 0 deletions crane_plus_moveit_config/config/pilz_cartesian_limits.yaml
Original file line number Diff line number Diff line change
@@ -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
Loading
Loading