Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix URDF xacro files following the URDF conventions #210

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jacknlliu
Copy link
Contributor

@jacknlliu jacknlliu commented Aug 14, 2019

upload the URDF to ROS parameter server using the origin URDF files

roslaunch iiwa_description iiwa7_upload.launch

run the following test script test.py

#!/usr/bin/env python

import kdl_parser_py.urdf
from urdf_parser_py.urdf import URDF
from kdl_parser_py.urdf import treeFromUrdfModel
import rospy


def main():

    robot_description = URDF.from_parameter_server()

    (ok, tree) = treeFromUrdfModel(robot_description) # get KDL tree from URDF
    chain = tree.getChain("world", "iiwa_link_7") # get KDL chain from kdl tree

    print("Number of segments is: {}".format(chain.getNrOfSegments()))


if __name__ == "__main__":
    main()

we will get the following warnings about URDF:

Unknown tag: material
Unknown tag: self_collision_checking
Unknown tag: material
Unknown tag: material
Unknown tag: material
Unknown tag: material
Unknown tag: material
Unknown tag: material
Unknown tag: material
Unknown tag: hardwareInterface
Unknown tag: robotNamespace
Unknown tag: hardwareInterface
Unknown tag: robotNamespace
Unknown tag: hardwareInterface
Unknown tag: robotNamespace
Unknown tag: hardwareInterface
Unknown tag: robotNamespace
Unknown tag: hardwareInterface
Unknown tag: robotNamespace
Unknown tag: hardwareInterface
Unknown tag: robotNamespace
Unknown tag: hardwareInterface
Unknown tag: robotNamespace
Number of segments is: 8

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants