how to subscirbe robot current states (joint/end effector position/velocity)
I am using ROS to control my UR. I am new in ROS. And I wonder how to subscirbe robot states (joint/end effector position/velocity)? I am using "kinematic_model->getGlobalLinkTransform("ee_link")" in my ros to get end effector's state, but results of two times are different. And I wonder if there are easier way to get this. The other question is how to publish a trajectory and control UR in ROS? Should I use moveit?