Skip to content

use moveit to control UR5 's velocity  #717

@zp2546265641

Description

@zp2546265641

Affected ROS Driver version(s)

master

Used ROS distribution.

Noetic

Which combination of platform is the ROS driver running on.

Linux

How is the UR ROS Driver installed.

Build the driver from source and using the UR Client Library from binary

Which robot platform is the driver connected to.

UR CB3 robot

Robot SW / URSim version(s)

3.15.7

How is the ROS driver used.

Through the robot teach pendant using External Control URCap

Issue details

Summary

*I use moveit to control the real robot ur5, but I found that set_max_acceleration_scaling_factor() and set_max_velocity_scaling_factor() do not seem to control the speed of ur5. I set it to 1 but the robot's moving speed did not change. Only the slider on the teach pendant can control the robot's moving speed.

code

*class MoveItCartesianDemo:
def init(self):

    moveit_commander.roscpp_initialize(sys.argv)

    rospy.init_node('moveit_cartesian_demo', anonymous=True)
    self.arm_group = moveit_commander.MoveGroupCommander('manipulator')

def move_group_init(self):

    self.arm_group.set_max_acceleration_scaling_factor(1)
    self.arm_group.set_max_velocity_scaling_factor(1)

    self.arm_group.allow_replanning(True)

    self.arm_group.set_pose_reference_frame('base_link') 
    self.arm_group.set_goal_position_tolerance(0.001)
    self.arm_group.set_goal_orientation_tolerance(0.001)*

Expected Behavior

i want to set the velocity by the moveit setting, i do not know which cause this problem. If I want to implement this functionality, what do I need to do?
and what's more, i want to get the tcp's velocity? how can i get it by which function?

Relevant log output

No response

Accept Public visibility

  • I agree to make this context public

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions