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

plan_constant_velocity_twist() doesnot give a constant velocity profile #12

Open
lakshmip001 opened this issue Apr 9, 2019 · 2 comments

Comments

@lakshmip001
Copy link

lakshmip001 commented Apr 9, 2019

I applied plan_constant_velocity_twist on UR5 robot.

Kindly find the code and the velocity plot below:

 start_transform = numpy.eye(4)
        start_transform[0, 3] = 0.80917
        start_transform[1, 3] = 0.05212
        start_transform[2, 3] = 0.81
        twist = numpy.zeros(6)
        twist[:3] = [0.0, 0.5, 0.0]
        twist[3:] = [0.9,0,0]
        velocity = 0.07
        traj = ru.planning.plan_constant_velocity_twist(self.robot, twist, velocity, 5)

velocity profile:
image

Kindly guide me if something is wrong.

@fsuarez6
Copy link
Member

Try adding more waypoints, something like 100.

@lakshmip001
Copy link
Author

lakshmip001 commented Apr 12, 2019

I tried adding number of waypoints 10, 15, but still the profile is almost shown above. While sometimes it gives trajectory as nonetype. Is there any other way to add more number of waypoints?

Velocity profile when configuration is as below:
velocity = 0.05
traj = ru.planning.plan_constant_velocity_twist(self.robot, twist, velocity, 100)
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants