ROS Answers: Open Source Q&A Forum - RSS feedhttps://answers.ros.org/questions/Open source question and answer forum written in Python and DjangoenROS Answers is licensed under Creative Commons Attribution 3.0Tue, 25 Jun 2019 11:19:10 -0500How to generate a trajectory path from a series of pointshttps://answers.ros.org/question/326917/how-to-generate-a-trajectory-path-from-a-series-of-points/I require some advice regarding how to generate a path planning algorithm that, when provided with a start pose (x,y,z) and orientation (x,y,z,yaw), a series of intermediate points (optional) and an end pose and orientation, the algorithm generates an optimal path. I have researched possible approaches, however many of different approaches seem to implement object aversion, which is not required in this instance. The algorithm will be implemented in python and ROS and shall be used to control the movement of a robot with 6 DOF. I initially considered using the Lagrange algorithm to calculate a polynomial equation that passes through each of the specified points, however the error margin seems quite high using this approach. Does any one have any suggestions?
Tue, 25 Jun 2019 10:08:49 -0500https://answers.ros.org/question/326917/how-to-generate-a-trajectory-path-from-a-series-of-points/Comment by mali for <p>I require some advice regarding how to generate a path planning algorithm that, when provided with a start pose (x,y,z) and orientation (x,y,z,yaw), a series of intermediate points (optional) and an end pose and orientation, the algorithm generates an optimal path. I have researched possible approaches, however many of different approaches seem to implement object aversion, which is not required in this instance. The algorithm will be implemented in python and ROS and shall be used to control the movement of a robot with 6 DOF. I initially considered using the Lagrange algorithm to calculate a polynomial equation that passes through each of the specified points, however the error margin seems quite high using this approach. Does any one have any suggestions?</p>
https://answers.ros.org/question/326917/how-to-generate-a-trajectory-path-from-a-series-of-points/?comment=326925#post-id-326925Hi, it seems you have the poses (start, intermediate, and final) in cartesian space, one way is to convert them into joint space points and then you can use 1. time parameterization method from moveit either [iterative spline parramterization](https://github.com/ros-planning/moveit/blob/master/moveit_core/trajectory_processing/src/iterative_spline_parameterization.cpp) or [time-optimal trajectory parameterization](https://github.com/ros-planning/moveit/blob/master/moveit_core/trajectory_processing/src/time_optimal_trajectory_generation.cpp), then you have time, velocity, and acceleration assign for each waypoint. after that you can use the the joint_trajcetory_controller to generate control commands for the robot by sampling the trajectory with anythe same frequency of the robot controller.Tue, 25 Jun 2019 11:19:10 -0500https://answers.ros.org/question/326917/how-to-generate-a-trajectory-path-from-a-series-of-points/?comment=326925#post-id-326925