ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

how to output velosity with ur_modern_driver

asked 2017-06-08 09:51:53 -0500

bobpop gravatar image

I am doing a project about robot-teleoperation now. By using ROS I have accomplished the position-control(even though there are time-delay between the master and slave).I find that the position control is not flexible enough,so I want to control the robot with velosity-control .After reading the explaination about link text ,I learned that maybe it's possible to control the jointspeed. After I

 roslauch ur_modern_driver ur_driver

and

 rostopic echo /ur_driver/jointspeed

There is no response anywhere,what's failure and what I should do to control the jointspeed? Any help should be appreciated!

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2017-06-08 10:38:10 -0500

gvdhoorn gravatar image

updated 2017-06-09 01:40:28 -0500

/ur_driver/jointspeed is not a publication, but a subscription.

You're supposed to send it joint velocities, they will not be published there.


Edit:

Maybe there are some mistakes in my expression ,I use rostopic echo just want to see whether it has changed after publishing.I attempted to see its message details by using TAB key.I found that it is similar to /Follow_Joint_Trajectory.That make me confused,why I need to set joint position again

The fact that it uses a JointTrajectory msg doesn't mean that you have to set position. See RosWrapper::speedInterface(..). It only uses the velocity field.

This is also described in the readme (emphasis mine):

joint_speed : Takes messages of type trajectory_msgs/JointTrajectory. Parses the first JointTracetoryPoint and sends the specified joint speeds and accelerations to the robot.

edit flag offensive delete link more

Comments

Eh,which topic or command I should use?If I use the /ur_driver/FollowJointTrajectory,that means I must set joint position,velosity… I learned that it's a position control and position perhaps is not the most important value in my consideration , what I want to just move in a direction.

bobpop gravatar image bobpop  ( 2017-06-08 11:26:08 -0500 )edit

I'm a bit confused by your comment. The topic is fine, rostopic echo .. just won't do anything with it as there are no message published to it. You have to publish messages to it.

gvdhoorn gravatar image gvdhoorn  ( 2017-06-08 12:11:39 -0500 )edit

Maybe there are some mistakes in my expression ,I use rostopic echo just want to see whether it has changed after publishing.I attempted to see its message details by using TAB key.I found that it is similar to /Follow_Joint_Trajectory.That make me confused,why I need to set joint position again

bobpop gravatar image bobpop  ( 2017-06-08 23:00:47 -0500 )edit

oh,I got it.Thanks,gvdhoorn.By the way,I should use trajectory_msgs::JointTrajectorydirectly instead of control_msgs::FollowJointTrajectoryAction>::Goal ,it's right?

bobpop gravatar image bobpop  ( 2017-06-09 08:13:55 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-06-08 09:51:53 -0500

Seen: 529 times

Last updated: Jun 09 '17