diff --git a/README.md b/README.md index 7e249b1..6f44993 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ Please read in raw as I figure out how to properly format this Section 1: Installation To add camera functionality to the spiri drone, copy the code below into the sdf file of the model you are using, before the last line. +``` @@ -94,7 +95,7 @@ To add camera functionality to the spiri drone, copy the code below into the sdf   - +``` Section 2: Modifying the code @@ -102,17 +103,19 @@ This section will go through the code section by section and describe what each Joint: This joint connects the camera link to the main robot. The parent is the main robot (base) and the child is the camera link +``` spiri::base camera_link::link +``` Link: This defines the actual camera - +``` - +``` Inertial: This defines the mass and intertial properties. The values are set to be small to not change the model much - +``` 0 0 0 0 0 0 0.01 @@ -145,21 +148,22 @@ Visual: this defines the look of the camera       0.0 0.0 0.0 1.0         - +``` Sensor: This defines how and what the camera outputs. The type multicamera corresponds to a stereo camera - +``` - +``` Update rate: This parameter defines the frame rate of the cameras - +``` 30.0 - +``` Next we define the left camera specific parameters +``` - 1.3962634 + 1.5708 - 800 - 800 + 1280 + 960 R8G8B8 @@ -172,14 +176,16 @@ Next we define the left camera specific parameters 0.007 +``` These values still need to be updated to match the camera we are actually using The right camera is similarly defined, along with an offset from the left camera (the pose) +``` 0 -0.07 0 0 0 0 - 1.3962634 + 1.5708 - 800 - 800 + 1280 + 960 R8G8B8 @@ -192,7 +198,9 @@ The right camera is similarly defined, along with an offset from the left camera 0.007 +``` Finally we define some values for ros to use for the topics that we output to, and close everything +``` true 0.0 @@ -202,4 +210,5 @@ Finally we define some values for ros to use for the topics that we output to, a left_camera_optical_frame - \ No newline at end of file + +``` \ No newline at end of file