Coder Social home page Coder Social logo

ros_catkin's Introduction

ROS_catkin

ros learning note

ros_catkin's People

Contributors

sslishy avatar

Stargazers

 avatar

Watchers

 avatar

ros_catkin's Issues

robot 模型合并过程

手臂宏定义

 <?xml version="1.0"?>
<robot xmlns:xacro="http://wiki.ros.org/xacro">
  <xacro:macro name="hg_description" params="arm_id='hg' description_pkg:=''">
link 信息
 </xacro:macro>
</robot>

夹持器宏定义

<?xml version="1.0"?>
<robot xmlns:xacro="http://wiki.ros.org/xacro">
 <xacro:macro name="hand" params="connected_to:='' ns:='' rpy:='0 0 0' xyz:='0 0 0' description_pkg:=''">
    <xacro:unless value="${connected_to == ''}">
      <joint name="${ns}_hand_joint" type="fixed">
        <parent link="${connected_to}"/>
        <child link="gripper_base"/>
        <origin xyz="${xyz}" rpy="${rpy}"/>
      </joint>
    </xacro:unless> 
模型link信息
</xacro:macro>  
</robot>

将两个xacro 文件合并

<?xml version="1.0"?>
<robot name="hg_description" xmlns:xacro="http://wiki.ros.org/xacro">
  <xacro:include filename="$(find hg_descriptiontest)/urdf/hg_arc_macro.xacro" />
  <xacro:include filename="$(find hg_descriptiontest)/urdf/hand_arc_macro.xacro" />
  <xacro:hg_description description_pkg="hg_descriptiontest"/>
  <xacro:hand ns="hg" rpy="0 0 0" xyz="0 0 0" connected_to="hg_Link6" description_pkg="hg_descriptiontest"/>
</robot>

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.