Conversation
|
I'm not familiar with these modelling programs, and also the original code seems to separate intentionally the first element from the others of visual tags, so I'm not sure that this PR is correct. |
|
LGTM original code is quite old. |
|
I see. Thank you. @clalancette could you review? |
|
@eisoku9618 I'm sorry for the delay here. In general, the code looks OK to me. There's a few things I will mention about this, though:
@sloretz , any additional thoughts here? |
|
@clalancette Thank you for your review.
Could you give me any suggestion for the way to test this PR? TEST(urdf_to_collada, multi_visual_tags)
{
urdf::Model robot_model_urdf, robot_model_collada;
// load original urdf file
robot_model_urdf.initFile("test.urdf");
// convert urdf to collada
collada_urdf::WriteUrdfModelToColladaFile(robot_model_urdf, "test.dae");
// load converted collada file
robot_model_collada.initFile("test.dae");
// check whether robot_model_urdf and robot_model_collada are the same
ASSERT_TRUE(check_identity(robot_model_urdf, robot_model_collada));
}I tried to write a test like the above, but I could not implement So, it seems difficult for me to check White geometry is properly translated. |
cc @YoheiKakiuchi (original comitter of this part ros/robot_model#20)
I am a
urdf_to_colladauser which converts URDF to COLLADA, and it seems that the original URDF file and the generated COLLADA are different when it has multi visual tags.Let's say we have the following URDF file
test.urdf.roslaunch urdf_tutorial display.launch model:=test.urdfrosrun collada_urdf urdf_to_collada test.urdf test.dae && roslaunch urdf_tutorial display.launch model:=test.daerosrun collada_urdf urdf_to_collada test.urdf test.dae && roslaunch urdf_tutorial display.launch model:=test.dae