Code Monkey home page Code Monkey logo

Comments (9)

v-lopez avatar v-lopez commented on August 17, 2024 1

Hello Pedro,

We're moving this internally and will get back to you soon.

from talos_robot.

lucamarchionni avatar lucamarchionni commented on August 17, 2024

Hi Pedro,
we would like to follow-up this issue.
DAE with colors can be obtained from the provided STL files using MeshLab and the following command:

meshlabserver -i femur.STL -s black_coloring.mlx -o femur.dae -om vc

black_coloring.mlx is a simple script to define the color of the vertices.
To color the mesh in black (in RGB coordinates is (0,0,0)), it will be:

<!DOCTYPE FilterScript>
<FilterScript>
 <filter name="Vertex Color Filling">
  <Param type="RichDynamicFloat" value="0" min="0" name="r" max="255"/>
  <Param type="RichDynamicFloat" value="0" min="0" name="g" max="255"/>
  <Param type="RichDynamicFloat" value="0" min="0" name="b" max="255"/>
 </filter>
</FilterScript>

The DAE files should be used in the URDF for visual and collision geometries.
@PedroDesRobots Could you please test if this will work in DART?

from talos_robot.

PedroDesRobots avatar PedroDesRobots commented on August 17, 2024

Hi @lucamarchionni,
I have converted the provided STL files using MeshLab and your simple script to define the color.
It creates the dae file properly. Then, when I open it with MeshLab the mesh is in black. At this point, it works.

At the begin with STL files, we obtain this Talos :
talos_stl

But I don't know why we got a "grey" Talos (no white or black parts) into DART with dae file.
talos_dae
Now, it's better. Talos is not transparent anymore but we don't obtain exactly the desired color.
I know that for iCub, the dae files were generated directly from Blender.

from talos_robot.

PedroDesRobots avatar PedroDesRobots commented on August 17, 2024

In gazebo we got this Talos with dae files, thanks to material tag inside the urdf :
talos_gazebo_dae

from talos_robot.

lucamarchionni avatar lucamarchionni commented on August 17, 2024

Hi,
visualization meshes in DAE format need a texture file for being properly rendered in Rviz.
I generated the new DAE meshes with texture and modified the URDF files in the branch "dae_meshes_with_color". @PedroDesRobots could you test it in DART?

from talos_robot.

PedroDesRobots avatar PedroDesRobots commented on August 17, 2024

Hi,
it works clearly better with a texture file inside the DAE. Thanks a lot for generating those files 👍 .
talos_dart_dae

It still to have transparent parts but at this point, it should be specific at DART I guess.

from talos_robot.

FilippoSmald1 avatar FilippoSmald1 commented on August 17, 2024

Good moring,
I'm having troubles in parsing Talos in DART. I am trying to generate the urdf file from the urdf.xacro, by using something like

rosrun xacro xacro --inorder model.urdf.xacro > model.urdf

without success. @PedroDesRobots, @lucamarchionni, do you have any suggestion?
Thank you very much,
Filippo

from talos_robot.

PedroDesRobots avatar PedroDesRobots commented on August 17, 2024

Hi @FilippoSmald1,

I don't know exactly your error but maybe you need to add some parameters like enable_crane (True or False) and foot_collision (default, thinbox, tallbox).

For example :
rosrun xacro xacro --inorder talos_full_common.urdf.xacro > test_talos.urdf enable_crane:=False foot_collision:=thinbox

from talos_robot.

FilippoSmald1 avatar FilippoSmald1 commented on August 17, 2024

Thank you

from talos_robot.

Related Issues (6)

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.