From 8f375161d3f7ce992d20c0425b720116c0ad47ad Mon Sep 17 00:00:00 2001 From: alan le run Date: Wed, 17 Jan 2024 10:16:41 +0100 Subject: [PATCH] tag aruco on the robot --- src/ezbot_descr_simul/CMakeLists.txt | 10 ++ src/ezbot_descr_simul/description/imu.xacro | 98 ++++++++++++++++++ .../description/robot.urdf.xacro | 2 +- .../description/robot_core.xacro | 12 ++- .../media/materials/scripts/aruco.material | 14 +++ .../media/materials/textures/aruco_id0.png | Bin 0 -> 1648 bytes 6 files changed, 133 insertions(+), 3 deletions(-) create mode 100644 src/ezbot_descr_simul/description/imu.xacro create mode 100644 src/ezbot_descr_simul/media/materials/scripts/aruco.material create mode 100644 src/ezbot_descr_simul/media/materials/textures/aruco_id0.png diff --git a/src/ezbot_descr_simul/CMakeLists.txt b/src/ezbot_descr_simul/CMakeLists.txt index f47adf0..65e6f86 100644 --- a/src/ezbot_descr_simul/CMakeLists.txt +++ b/src/ezbot_descr_simul/CMakeLists.txt @@ -37,4 +37,14 @@ install( DESTINATION share/${PROJECT_NAME} ) +install( + DIRECTORY media/ + DESTINATION $ENV{HOME}/.gazebo/media/ +) + + +install(DIRECTORY media/ + DESTINATION share/${PROJECT_NAME}/media/ +) + ament_package() diff --git a/src/ezbot_descr_simul/description/imu.xacro b/src/ezbot_descr_simul/description/imu.xacro new file mode 100644 index 0000000..c58cc02 --- /dev/null +++ b/src/ezbot_descr_simul/description/imu.xacro @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + Gazebo/Black + + true + + true + 100 + true + __default_topic__ + + imu + imu_link + 10.0 + 0.0 + 0 0 0 + 0 0 0 + imu_link + false + + 0 0 0 0 0 0 + + + + + 0.0 + 2e-4 + 0.0000075 + 0.0000008 + + + + + 0.0 + 2e-4 + 0.0000075 + 0.0000008 + + + + + 0.0 + 2e-4 + 0.0000075 + 0.0000008 + + + + + + + 0.0 + 1.7e-2 + 0.1 + 0.001 + + + + + 0.0 + 1.7e-2 + 0.1 + 0.001 + + + + + 0.0 + 1.7e-2 + 0.1 + 0.001 + + + + + + + + + \ No newline at end of file diff --git a/src/ezbot_descr_simul/description/robot.urdf.xacro b/src/ezbot_descr_simul/description/robot.urdf.xacro index 9688cb7..c03007a 100644 --- a/src/ezbot_descr_simul/description/robot.urdf.xacro +++ b/src/ezbot_descr_simul/description/robot.urdf.xacro @@ -5,5 +5,5 @@ - + \ No newline at end of file diff --git a/src/ezbot_descr_simul/description/robot_core.xacro b/src/ezbot_descr_simul/description/robot_core.xacro index 9b374bf..f4e96e2 100644 --- a/src/ezbot_descr_simul/description/robot_core.xacro +++ b/src/ezbot_descr_simul/description/robot_core.xacro @@ -86,8 +86,16 @@ - - aruco/material + + + + + + diff --git a/src/ezbot_descr_simul/media/materials/scripts/aruco.material b/src/ezbot_descr_simul/media/materials/scripts/aruco.material new file mode 100644 index 0000000..6b18c8f --- /dev/null +++ b/src/ezbot_descr_simul/media/materials/scripts/aruco.material @@ -0,0 +1,14 @@ +material arucoMat +{ + receive_shaddows off + technique + { + pass + { + texture_unit + { + texture aruco_id0.png + } + } + } +} diff --git a/src/ezbot_descr_simul/media/materials/textures/aruco_id0.png b/src/ezbot_descr_simul/media/materials/textures/aruco_id0.png new file mode 100644 index 0000000000000000000000000000000000000000..8d3c497c24985047f1a048fd39f2af3c471de99e GIT binary patch literal 1648 zcmeAS@N?(olHy`uVBq!ia0y~yV5|Y+Dh@WFh}6Ev*MSsEv6E*A2N2Y7q;vrJk|nMY zCBgY=CFO}lsSN3P`MIgO#mPmfsd>d2`6cg}_uDZrurYbMIEGZrd3(b!OT}Bn_28+% z>B$Q)+e_PuoA9?)I;@sys^9&!^oPYfLcXbsT^R=kU z!pC-eU{qp}S8y73)FU(7hREvoFFBRhy`D9X!GAjczk9zUvVG4>eEjsO$VRUJrKIwy z|9^qt$B!Q~<{f14w_*@%;ulc-L3>Kz^VhGYwvCE(vW`J;`%6ZH)c3ZwjPtxc9ImUY z>)U$mOON3C_3MxSt(!lO(f_F@JKd7Ni5>UfUlw-bq+ee1d|v72->`hQFMk8)^-^Dd ziLKXW%{#y#PDdAjt^NG-rzJgO9hkfdXUj1NuX}9;%sgFZPPyYpxaQ-m@8;A VYijgoX<(JX;OXk;vd$@?2>@??{k#AG literal 0 HcmV?d00001