-
Notifications
You must be signed in to change notification settings - Fork 9
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
It is similar to desartes, so tool is unconstrained. I want to constrain fully #8
Comments
An answer based on what I learned while curiously reading through the code. Inside
In addition there are two extra options for robots on a rail: The // Populate Constraints
for (std::size_t i = 0; i < pass.size(); ++i)
{
auto pose = std::make_shared<trajopt::StaticPoseCostInfo>();
pose->term_type = trajopt::TT_CNT;
pose->name = "waypoint_cart_" + std::to_string(i);
pose->link = "sander_tcp";
pose->timestep = i;
pose->xyz = pass[i].translation();
pose->wxyz = to_wxyz(pass[i]);
pose->pos_coeffs = Eigen::Vector3d(10, 10, 10);
pose->rot_coeffs = Eigen::Vector3d(10, 10, 0);
pci.cnt_infos.push_back(pose);
} Change the coefficient for the orientation constraints from pose->rot_coeffs = Eigen::Vector3d(10, 10, 0); to pose->rot_coeffs = Eigen::Vector3d(10, 10, 10); will add a fully constrained tool pose. See also the basic_cartesian_plan example in the trajopt_ros repository. |
Hi, For attaining constant cartesian velocity i need to provide constraint for CartVelTermInfo for two waypoints (when moving from one point to other point). And hybrid_planning_experiments uses opw_kinematics, while universal robot doesnt have opw_kinematics. I tried trajopt basic_cartesian_plan_example, I was able to visualize the plan in RVIZ, while trying to integrate with gazebo or real robot I am unable to integrate as the trajectory optimized doesn't contain joint velocities and accelerations as shown in the below link. Kindly please guide me how to integrate with robot . |
Currently you will need to pass the trajectory to time parameterization. I recommend using MoveIts time parameterization libraries. |
@Levi-Armstrong hi, I tried calculating velocities through time parameterization by adding following lines:
And I keep getting following error: bpmpd_caller: /home/lakshmi/catkin_ws/src/trajopt_ros/trajopt_sco/include/trajopt_sco/bpmpd_io.hpp:35: void bpmpd_io::ser(int, T&, bpmpd_io::SerMode) [with T = char]: Assertion `n == sizeof(T)' failed. Kindly please help me if I am wrong. |
I want to constrain fully and achieve a straight line motion. Kindly please let me know how I can fully constrain a straight line path with Cartesian coordinates and Cartesian velocities.
The text was updated successfully, but these errors were encountered: