Coder Social home page Coder Social logo

sugikazu75 / jsk_model_tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jsk-ros-pkg/jsk_model_tools

0.0 0.0 0.0 6.47 MB

JSK model utilities

Home Page: https://github.com/jsk-ros-pkg/jsk_model_tools

License: BSD 3-Clause "New" or "Revised" License

Shell 3.11% C++ 50.43% Scheme 0.03% Python 9.18% Common Lisp 34.01% Makefile 0.01% CMake 3.22%

jsk_model_tools's Introduction

jsk_model_tools Build Status

Package Melodic (Bionic) Noetic (Focal) Noetic (Buster)
jsk_model_tools (arm64) Build Status Build Status Build Status
jsk_model_tools (armhf) Build Status Build Status ---
jsk_model_tools (i386) --- --- ---
jsk_model_tools (amd64) Build Status Build Status Build Status

Model Convert

Convert from CAD manually

(cf. PR of function to automatically convert: euslisp/jskeus#248)

  • Convert1. export stl mesh with SolidEdge

=> my_model.stl is generated.

  • Convert2. generate urdf generate urdf with following contents. (assume that my_model.stl is located at /home/leus/my_model.stl)
<robot name="my_model_name">
  <link name="root">
    <inertial>
     <origin xyz="0 0 0.5" rpy="0 0 0"/>
     <mass value="1"/>
     <inertia ixx="100"  ixy="0"  ixz="0" iyy="100" iyz="0" izz="100" />
    </inertial>
    <visual>
     <origin xyz="0 0 0" rpy="0 0 0" />
     <geometry>
       <mesh filename="file:///home/leus/my_model.stl" />
     </geometry>
    </visual>
    <collision>
     <origin xyz="0 0 0" rpy="0 0 0"/>
     <geometry>
       <mesh filename="file:///home/leus/my_model.stl" />
     </geometry>
    </collision>
  </link>
</robot>

=> save to my_model.urdf

  • Convert3. convert to collada
rosrun collada_urdf_jsk_patch urdf_to_collada my_model.urdf my_model.dae

=> my_model.dae is generated.

  • Convert4. convert to eus
rosrun euscollada collada2eus my_model.dae my_model.l # fixed model version
rosrun euscollada collada2eus my_model.dae my_model.yaml my_model.l

=> my_model.l is generated.
my_model.yaml is used to set joints and endcoords settings. Please refer to example file of PR2.
Without the yaml file, the model can not move or get/send :angle-vector.

  • Visualize1. visualize urdf with Rviz
roslaunch urdf_tutorial display.launch model:=/home/leus/my_model.urdf
  • Visualize2. spawn urdf to gazebo
roslaunch gazebo_ros empty_world.launch
rosrun gazebo_ros spawn_model -file my_model.urdf -urdf -model my_model
  • Visualize3. visualize eus with irtviewer
roseus my_model.l
(objects (list (my_model)))
  • Visualize4. visualize stl with irtviewer
(load "package://eus_assimp/euslisp/eus-assimp.l" )
(setq glv (load-mesh-file "my_model.stl" :scale 1000.0))
(objects (list glv))

jsk_model_tools's People

Contributors

k-okada avatar yoheikakiuchi avatar garaemon avatar snozawa avatar furushchev avatar mmurooka avatar naoki-hiraoka avatar wkentaro avatar eisoku9618 avatar iory avatar orikuma avatar mqcmd196 avatar mttamtam avatar cottsay avatar takuma-hiraoka avatar kirohy avatar w567 avatar

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.