Git Product home page Git Product logo

Comments (2)

cambel avatar cambel commented on June 26, 2024

Sure it can. I have been using it on a UR3e and UR5e without problem. The main changes are on the core controller, the Forward Kinematics and Inverse Kinematics libraries. I updated the KDL library, so it can load the robot's URDF from the ros parameter server robot_description.

For the Inverse Kinematics, I have included the UR10 in my repo of IKFast databases. Alternatively, you can use Trac-IK which loads the URDF from the parameter server, similarly to KDL.
All of those definitions are here

def _init_ik_solver(self, robot_urdf):
self.kdl = ur_kinematics(robot_urdf, ee_link=self.ee_link)
if self.ik_solver == IKFAST:
# IKfast libraries
if robot_urdf == 'ur3_robot':
self.arm_ikfast = ur_ikfast.URKinematics('ur3')
elif robot_urdf == 'ur3e_robot':
self.arm_ikfast = ur_ikfast.URKinematics('ur3e')
elif self.ik_solver == TRAC_IK:
self.trac_ik = IK(base_link="base_link", tip_link=self.ee_link,
timeout=0.001, epsilon=1e-5, solve_type="Speed",
urdf_string=utils.load_urdf_string('ur_pykdl', robot_urdf))
else:
raise Exception("unsupported ik_solver", self.ik_solver)

I will update the code soon to have an example that does not relies on a fixed URDF. Instead it loads whatever URDF is on the robot_description.

For gazebo, you would need to create a launch file loading your robot with whatever additional configuration you have (gripper, cameras, environment, etc)

For MoveIt, you could in principle use the default official package or create your own one following the MoveIt tutorials.

I think that covers most if not all the difference between UR robots in this repo.

from ur3.

cambel avatar cambel commented on June 26, 2024

@Papul-Ghosh Hi,

I did some updates to the repository. Now it is easier to use any UR robot.

You can start gazebo for the cubes task world with the following command

roslaunch ur3_gazebo ur_cubes.launch ur_robot:=ur10

Then you can connect to the robot defining the specific robot like this:

    arm = Arm(robot_urdf='ur10')

And that should be all for the basics

from ur3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.