From 5a003df73949f6d6cf92a3360491b097f13fc858 Mon Sep 17 00:00:00 2001 From: stevendes Date: Thu, 17 Oct 2019 20:28:58 -0300 Subject: [PATCH] Changed the apriltags and camera plugin fixup! Adding new world --- ca_description/urdf/create_apriltag.xacro | 14 ++- ca_description/urdf/create_base.xacro | 7 +- ca_gazebo/launch/create_camera_world.launch | 27 +---- .../materials/textures/apriltag1.png | Bin 99 -> 0 bytes .../Camera_world/Apriltag1/model.config | 11 -- .../materials/textures/apriltag2.png | Bin 97 -> 0 bytes .../Camera_world/Apriltag2/model.config | 11 -- .../materials/textures/apriltag3.png | Bin 99 -> 0 bytes .../Camera_world/Apriltag3/model.config | 11 -- .../models/Camera_world/Camera/model.config | 11 -- .../models/Camera_world/Camera/model.sdf | 33 ------ .../models/Camera_world/Walls/model.config | 11 -- .../materials/scripts/textures.material | 5 +- .../materials/textures/apriltag1.png | Bin 0 -> 113 bytes .../camera_world/apriltag1/model.config | 11 ++ .../apriltag1}/model.sdf | 8 +- .../materials/scripts/textures.material | 3 +- .../materials/textures/apriltag2.png | Bin 0 -> 111 bytes .../camera_world/apriltag2/model.config | 11 ++ .../apriltag2}/model.sdf | 10 +- .../materials/scripts/textures.material | 3 +- .../materials/textures/apriltag3.png | Bin 0 -> 117 bytes .../camera_world/apriltag3/model.config | 11 ++ .../models/camera_world/camera/model.config | 11 ++ .../models/camera_world/camera/model.sdf | 94 ++++++++++++++++++ .../model.config | 0 .../models/camera_world/walls/model.config | 11 ++ .../Walls => camera_world/walls}/model.sdf | 4 +- ca_gazebo/worlds/camera_world.world | 27 ++--- 29 files changed, 191 insertions(+), 154 deletions(-) delete mode 100644 ca_gazebo/models/Camera_world/Apriltag1/materials/textures/apriltag1.png delete mode 100644 ca_gazebo/models/Camera_world/Apriltag1/model.config delete mode 100644 ca_gazebo/models/Camera_world/Apriltag2/materials/textures/apriltag2.png delete mode 100644 ca_gazebo/models/Camera_world/Apriltag2/model.config delete mode 100644 ca_gazebo/models/Camera_world/Apriltag3/materials/textures/apriltag3.png delete mode 100644 ca_gazebo/models/Camera_world/Apriltag3/model.config delete mode 100644 ca_gazebo/models/Camera_world/Camera/model.config delete mode 100644 ca_gazebo/models/Camera_world/Camera/model.sdf delete mode 100644 ca_gazebo/models/Camera_world/Walls/model.config rename ca_gazebo/models/{Camera_world/Apriltag1 => camera_world/apriltag1}/materials/scripts/textures.material (85%) create mode 100644 ca_gazebo/models/camera_world/apriltag1/materials/textures/apriltag1.png create mode 100644 ca_gazebo/models/camera_world/apriltag1/model.config rename ca_gazebo/models/{Camera_world/Apriltag2 => camera_world/apriltag1}/model.sdf (79%) rename ca_gazebo/models/{Camera_world/Apriltag2 => camera_world/apriltag2}/materials/scripts/textures.material (86%) create mode 100644 ca_gazebo/models/camera_world/apriltag2/materials/textures/apriltag2.png create mode 100644 ca_gazebo/models/camera_world/apriltag2/model.config rename ca_gazebo/models/{Camera_world/Apriltag1 => camera_world/apriltag2}/model.sdf (78%) rename ca_gazebo/models/{Camera_world/Apriltag3 => camera_world/apriltag3}/materials/scripts/textures.material (86%) create mode 100644 ca_gazebo/models/camera_world/apriltag3/materials/textures/apriltag3.png create mode 100644 ca_gazebo/models/camera_world/apriltag3/model.config create mode 100644 ca_gazebo/models/camera_world/camera/model.config create mode 100644 ca_gazebo/models/camera_world/camera/model.sdf rename ca_gazebo/models/{Camera_world => camera_world}/model.config (100%) create mode 100644 ca_gazebo/models/camera_world/walls/model.config rename ca_gazebo/models/{Camera_world/Walls => camera_world/walls}/model.sdf (99%) diff --git a/ca_description/urdf/create_apriltag.xacro b/ca_description/urdf/create_apriltag.xacro index 78f64fbb5..b4353ac1a 100644 --- a/ca_description/urdf/create_apriltag.xacro +++ b/ca_description/urdf/create_apriltag.xacro @@ -1,17 +1,15 @@ - + - - + + - - @@ -22,9 +20,9 @@ - 1 1 1 1 1 1 1 1 diff --git a/ca_description/urdf/create_base.xacro b/ca_description/urdf/create_base.xacro index 6d4c3fc3c..b46b3d7d5 100644 --- a/ca_description/urdf/create_base.xacro +++ b/ca_description/urdf/create_base.xacro @@ -51,7 +51,12 @@ - + + + + + + diff --git a/ca_gazebo/launch/create_camera_world.launch b/ca_gazebo/launch/create_camera_world.launch index fd1bc61d5..06be75f67 100644 --- a/ca_gazebo/launch/create_camera_world.launch +++ b/ca_gazebo/launch/create_camera_world.launch @@ -3,30 +3,9 @@ - - - - - - - - - - - - - - - - - - - - - - - + + - + diff --git a/ca_gazebo/models/Camera_world/Apriltag1/materials/textures/apriltag1.png b/ca_gazebo/models/Camera_world/Apriltag1/materials/textures/apriltag1.png deleted file mode 100644 index f6f22a9c9782ddb1b16b7833b0ff6cba3ca662a2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 99 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqTAnVBAr*1SKl~XC8aUb5)<~>o wO0n}}H85PmHNn?0u)!xew1M}q=mTbkYKs*SuD9D~0Ch2Vy85}Sb4q9e02tC4MF0Q* diff --git a/ca_gazebo/models/Camera_world/Apriltag1/model.config b/ca_gazebo/models/Camera_world/Apriltag1/model.config deleted file mode 100644 index 8ea15b254..000000000 --- a/ca_gazebo/models/Camera_world/Apriltag1/model.config +++ /dev/null @@ -1,11 +0,0 @@ - - - Apriltag1 - 1.0 - model.sdf - - - - - - diff --git a/ca_gazebo/models/Camera_world/Apriltag2/materials/textures/apriltag2.png b/ca_gazebo/models/Camera_world/Apriltag2/materials/textures/apriltag2.png deleted file mode 100644 index 9b66b7d59b034d5245135dc3009bcbab41661ee7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 97 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFq8lEnWAr*1SKl~XC8aUb5)<~>o uO0nx=N@)mYj1%6Vc_^Tv?;+O*Mut0|R)=n?ZgK+ZVeoYIb6Mw<&;$S&HX3yR diff --git a/ca_gazebo/models/Camera_world/Apriltag2/model.config b/ca_gazebo/models/Camera_world/Apriltag2/model.config deleted file mode 100644 index e62d50649..000000000 --- a/ca_gazebo/models/Camera_world/Apriltag2/model.config +++ /dev/null @@ -1,11 +0,0 @@ - - - Apriltag2 - 1.0 - model.sdf - - - - - - diff --git a/ca_gazebo/models/Camera_world/Apriltag3/materials/textures/apriltag3.png b/ca_gazebo/models/Camera_world/Apriltag3/materials/textures/apriltag3.png deleted file mode 100644 index 856d4f163ffd2252c1d622335c341dfe461f0cde..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 99 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqTAnVBAr*1SKl~XC8aUb5)<~>o w+ToYOwL$Y(K*PCqZHMKCA_<2JSbs1u6a=n_SgD|A1k}ag>FVdQ&MBb@08$Sc9RL6T diff --git a/ca_gazebo/models/Camera_world/Apriltag3/model.config b/ca_gazebo/models/Camera_world/Apriltag3/model.config deleted file mode 100644 index f4d230230..000000000 --- a/ca_gazebo/models/Camera_world/Apriltag3/model.config +++ /dev/null @@ -1,11 +0,0 @@ - - - Apriltag3 - 1.0 - model.sdf - - - - - - diff --git a/ca_gazebo/models/Camera_world/Camera/model.config b/ca_gazebo/models/Camera_world/Camera/model.config deleted file mode 100644 index 892199689..000000000 --- a/ca_gazebo/models/Camera_world/Camera/model.config +++ /dev/null @@ -1,11 +0,0 @@ - - - Camera - 1.0 - model.sdf - - - - - - diff --git a/ca_gazebo/models/Camera_world/Camera/model.sdf b/ca_gazebo/models/Camera_world/Camera/model.sdf deleted file mode 100644 index 4fd1d39d1..000000000 --- a/ca_gazebo/models/Camera_world/Camera/model.sdf +++ /dev/null @@ -1,33 +0,0 @@ - - - - 1 - - - - - 0.1 0.1 0.1 - - - - - - - /create_ws/src/camera_save_tutorial2 - - 1.047 - - 1920 - 1080 - - - 0.1 - 100 - - - 1 - 30 - - - - diff --git a/ca_gazebo/models/Camera_world/Walls/model.config b/ca_gazebo/models/Camera_world/Walls/model.config deleted file mode 100644 index 922149ec9..000000000 --- a/ca_gazebo/models/Camera_world/Walls/model.config +++ /dev/null @@ -1,11 +0,0 @@ - - - Walls - 1.0 - model.sdf - - - - - - \ No newline at end of file diff --git a/ca_gazebo/models/Camera_world/Apriltag1/materials/scripts/textures.material b/ca_gazebo/models/camera_world/apriltag1/materials/scripts/textures.material similarity index 85% rename from ca_gazebo/models/Camera_world/Apriltag1/materials/scripts/textures.material rename to ca_gazebo/models/camera_world/apriltag1/materials/scripts/textures.material index 53df6acc1..02a0ba3f4 100644 --- a/ca_gazebo/models/Camera_world/Apriltag1/materials/scripts/textures.material +++ b/ca_gazebo/models/camera_world/apriltag1/materials/scripts/textures.material @@ -1,4 +1,4 @@ -material Apriltag1 +material apriltag1 { technique { @@ -11,4 +11,5 @@ material Apriltag1 } } } -} \ No newline at end of file +} + diff --git a/ca_gazebo/models/camera_world/apriltag1/materials/textures/apriltag1.png b/ca_gazebo/models/camera_world/apriltag1/materials/textures/apriltag1.png new file mode 100644 index 0000000000000000000000000000000000000000..cdbeebd32c17c99c2aa4791537379bf01dd994cd GIT binary patch literal 113 zcmeAS@N?(olHy`uVBq!ia0vp^oFL4>1|%O$WD@{V7M?DSAr*1SKloXBcz6udWEzev zkT`dsH_>VXBhTawj592{luCFbd=Ggl7hhm(^Q + + apriltag1 + 1.0 + model.sdf + + Steven Desvars + steven.desvars@ekumenlabs.com + + SDF model for apriltag1 + diff --git a/ca_gazebo/models/Camera_world/Apriltag2/model.sdf b/ca_gazebo/models/camera_world/apriltag1/model.sdf similarity index 79% rename from ca_gazebo/models/Camera_world/Apriltag2/model.sdf rename to ca_gazebo/models/camera_world/apriltag1/model.sdf index 2d0829de9..05c5a41ad 100644 --- a/ca_gazebo/models/Camera_world/Apriltag2/model.sdf +++ b/ca_gazebo/models/camera_world/apriltag1/model.sdf @@ -1,6 +1,6 @@ - + 1 0 0 0 0 0 0 @@ -19,9 +19,9 @@ 1 1 1 1 1 1 1 1 diff --git a/ca_gazebo/models/Camera_world/Apriltag2/materials/scripts/textures.material b/ca_gazebo/models/camera_world/apriltag2/materials/scripts/textures.material similarity index 86% rename from ca_gazebo/models/Camera_world/Apriltag2/materials/scripts/textures.material rename to ca_gazebo/models/camera_world/apriltag2/materials/scripts/textures.material index 99fe87b19..eecab287d 100644 --- a/ca_gazebo/models/Camera_world/Apriltag2/materials/scripts/textures.material +++ b/ca_gazebo/models/camera_world/apriltag2/materials/scripts/textures.material @@ -1,4 +1,4 @@ -material Apriltag2 +material apriltag2 { technique { @@ -12,3 +12,4 @@ material Apriltag2 } } } + diff --git a/ca_gazebo/models/camera_world/apriltag2/materials/textures/apriltag2.png b/ca_gazebo/models/camera_world/apriltag2/materials/textures/apriltag2.png new file mode 100644 index 0000000000000000000000000000000000000000..ae6045ff4ff6456dd685c70273cb166b51a51bb8 GIT binary patch literal 111 zcmeAS@N?(olHy`uVBq!ia0vp^oFL4>1|%O$WD@{VW}YsNAr*1SKloXBcz6udWDXpW zaNuc@h-9~N2;xXgV2<#03g;1bpYD=AIZsxPXX^2{ax)|tSeBkP4d?jK3^akk)78&q Iol`;+0OP + + apriltag2 + 1.0 + model.sdf + + Steven Desvars + steven.desvars@ekumenlabs.com + + SDF model for apriltag2 + diff --git a/ca_gazebo/models/Camera_world/Apriltag1/model.sdf b/ca_gazebo/models/camera_world/apriltag2/model.sdf similarity index 78% rename from ca_gazebo/models/Camera_world/Apriltag1/model.sdf rename to ca_gazebo/models/camera_world/apriltag2/model.sdf index 6ed94e065..1cf583738 100644 --- a/ca_gazebo/models/Camera_world/Apriltag1/model.sdf +++ b/ca_gazebo/models/camera_world/apriltag2/model.sdf @@ -1,6 +1,6 @@ - + 1 0 0 0 0 0 0 @@ -19,9 +19,9 @@ 1 1 1 1 1 1 1 1 @@ -31,4 +31,4 @@ - \ No newline at end of file + diff --git a/ca_gazebo/models/Camera_world/Apriltag3/materials/scripts/textures.material b/ca_gazebo/models/camera_world/apriltag3/materials/scripts/textures.material similarity index 86% rename from ca_gazebo/models/Camera_world/Apriltag3/materials/scripts/textures.material rename to ca_gazebo/models/camera_world/apriltag3/materials/scripts/textures.material index 5f2a260de..e7a7e992a 100644 --- a/ca_gazebo/models/Camera_world/Apriltag3/materials/scripts/textures.material +++ b/ca_gazebo/models/camera_world/apriltag3/materials/scripts/textures.material @@ -1,4 +1,4 @@ -material Apriltag3 +material apriltag3 { technique { @@ -12,3 +12,4 @@ material Apriltag3 } } } + diff --git a/ca_gazebo/models/camera_world/apriltag3/materials/textures/apriltag3.png b/ca_gazebo/models/camera_world/apriltag3/materials/textures/apriltag3.png new file mode 100644 index 0000000000000000000000000000000000000000..901a589f07ce288955b4c960082d4376bfaf10fa GIT binary patch literal 117 zcmeAS@N?(olHy`uVBq!ia0vp^oFL4>1|%O$WD@{VHl8kyAr*1SKloXBcz6udWDXoT zpwiLIy;$QA+k>tNr3n*TF0SYbSaUEkfk$!C871yoVXYo}V_24tZDr PG>5^{)z4*}Q$iB}l^r4O literal 0 HcmV?d00001 diff --git a/ca_gazebo/models/camera_world/apriltag3/model.config b/ca_gazebo/models/camera_world/apriltag3/model.config new file mode 100644 index 000000000..8bbd5ce87 --- /dev/null +++ b/ca_gazebo/models/camera_world/apriltag3/model.config @@ -0,0 +1,11 @@ + + + apriltag3 + 1.0 + model.sdf + + Steven Desvars + steven.desvars@ekumenlabs.com + + SDF model for apriltag3 + diff --git a/ca_gazebo/models/camera_world/camera/model.config b/ca_gazebo/models/camera_world/camera/model.config new file mode 100644 index 000000000..d268baac2 --- /dev/null +++ b/ca_gazebo/models/camera_world/camera/model.config @@ -0,0 +1,11 @@ + + + camera + 1.0 + model.sdf + + Steven Desvars + steven.desvars@ekumenlabs.com + + SDF model for camera + diff --git a/ca_gazebo/models/camera_world/camera/model.sdf b/ca_gazebo/models/camera_world/camera/model.sdf new file mode 100644 index 000000000..58d5856b3 --- /dev/null +++ b/ca_gazebo/models/camera_world/camera/model.sdf @@ -0,0 +1,94 @@ + + + + 1 + + + + + 0.1 0.1 0.1 + + + + + 30.0 + + 1.3962634 + + 800 + 800 + R8G8B8 + + + 0.02 + 300 + + + gaussian + 0.0 + 0.007 + + + + true + 0.0 + create1/camera1 + image_raw + camera_info + camera_link + 0.07 + 0.0 + 0.0 + 0.0 + 0.0 + 0.0 + + + + + + camera_link + camera_optical_frame + 0 0 0 0 1.57 0 + + + + + + + diff --git a/ca_gazebo/models/Camera_world/model.config b/ca_gazebo/models/camera_world/model.config similarity index 100% rename from ca_gazebo/models/Camera_world/model.config rename to ca_gazebo/models/camera_world/model.config diff --git a/ca_gazebo/models/camera_world/walls/model.config b/ca_gazebo/models/camera_world/walls/model.config new file mode 100644 index 000000000..c2301d390 --- /dev/null +++ b/ca_gazebo/models/camera_world/walls/model.config @@ -0,0 +1,11 @@ + + + walls + 1.0 + model.sdf + + Steven Desvars + steven.desvars@ekumenlabs.com + + Walls necessary to create an square room + diff --git a/ca_gazebo/models/Camera_world/Walls/model.sdf b/ca_gazebo/models/camera_world/walls/model.sdf similarity index 99% rename from ca_gazebo/models/Camera_world/Walls/model.sdf rename to ca_gazebo/models/camera_world/walls/model.sdf index 4aaa9bd39..cbd7772ce 100644 --- a/ca_gazebo/models/Camera_world/Walls/model.sdf +++ b/ca_gazebo/models/camera_world/walls/model.sdf @@ -1,6 +1,6 @@ - + 1 0 0 0 0 -0 0 @@ -327,4 +327,4 @@ - \ No newline at end of file + diff --git a/ca_gazebo/worlds/camera_world.world b/ca_gazebo/worlds/camera_world.world index 35f8615a2..ce4205403 100644 --- a/ca_gazebo/worlds/camera_world.world +++ b/ca_gazebo/worlds/camera_world.world @@ -1,31 +1,22 @@ - - 1 - 0 4 10 0 -0 0 - 0.8 0.8 0.8 1 - 0.2 0.2 0.2 1 - - 1000 - 0.9 - 0.01 - 0.001 - - -0.5 0.1 -0.9 - + + + model://sun + - model://Camera_world/Walls + model://camera_world/walls - model://Camera_world/Apriltag1 + model://camera_world/apriltag1 3 7 0 0 0 0 - model://Camera_world/Apriltag2 + model://camera_world/apriltag2 -3 7 0 0 0 0 @@ -34,8 +25,8 @@ - model://Camera_world/Camera - 0 4 16 0 1.57 0 + model://camera_world/camera + 0 4 12 0 1.57 0