Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 1441

Python package node behaving differently between simulated and real UR5 bot

$
0
0
Following the examples listed at https://github.com/ros-industrial/universal_robot, I have successfully configure and pinged an IP address in my ur5 teachpad. From my commanline, I issue the various roslaunch commands with the IP address and I am able to control the robot with the moveit package . My custom python package is all about moving the ur5 end effector to a different pose. In the gazebo simulation the robot moves but when I tried executing on a real robot, nothing happens. I know the **go** function is what executes code on a live robot (my package is based on and uses moveit), as my code below show: def move_to_pose(self, pose): rospy.loginfo(pose) self.manipulator.set_goal_tolerance(0.5) self.manipulator.set_pose_target(pose) plan = self.manipulator.plan() self.manipulator.execute(plan) # display the trajectory in rviz. Follow the already computed plan self.manipulator.go(wait=True) # execute in real robot self.manipulator.stop() # ensure there is no residual movement self.manipulator.clear_pose_targets() # clear targets after planning with poses I would appreciate some help. I'm not sure why the simulation works but the live robot does not.

Viewing all articles
Browse latest Browse all 1441

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>