xArm-Developer / xarm_ros2

ROS2 developer packages for robotic products from UFACTORY
https://www.ufactory.cc/pages/xarm
BSD 3-Clause "New" or "Revised" License
100 stars 57 forks source link

ROS2 moveit planners, set planning time in code #60

Open DailyNir opened 5 months ago

DailyNir commented 5 months ago

Hello xArm Developer Team,

I am currently working with the xArm ROS 2 wrapper and I've encountered a scenario where I need to customize the planning time for the robot's movements. However, I am having difficulty locating the specific part of the code or the parameter that allows me to modify this setting.

Could you please guide me on how to change the planning time for the xArm in the ROS 2 wrapper? Any documentation or examples related to this would be highly appreciated.

Additionally, if this feature is not currently supported, I would like to suggest it as a potential enhancement for future releases. It would be incredibly beneficial for users requiring more flexibility in planning complex movements.

Thank you for your time and assistance.

Best regards

penglongxiang commented 5 months ago

Hi @DailyNir, could you please elaborate on " the planning time for robot's movement" ? Does that mean the planner calculation time or the trajectory execution time? Moreover, are you using Moveit or the wrapped ros service for robot motion planning?

Currently we do not have an effective interface to specify the execution time for a planned motion, only target speed and acceleration can be specified.

DailyNir commented 5 months ago

Well I was talking about the time it takes a planner to find a trajectory, I found that i can use movegroup.setPlanningTime function in the xarm_planner.cpp file but the planners are still failing, do you have any suggestions for choosing the right planner or getting another one into OMPL? I have them 30 seconded and 20 attempts and still failing to find a correct trajectory .

penglongxiang commented 5 months ago

xarm_planner is actually using Moveit planning interface in the background, it is from third party and not under our control. May I know which robot model you are using? Would you please share the initial joint configuration and command target when the planning fails?

You may go to xarm_moveit_config/config//ompl_planning.yaml to configure the default_planner_config and the corresponding planner parameters if any.