Skip to content

Commit 06f2039

Browse files
authored
Add precommit hooks (#1)
1 parent d494834 commit 06f2039

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ repos:
2222
- id: check-docstring-first
2323
- id: check-merge-conflict
2424
- id: check-symlinks
25+
- id: check-xml
2526
- id: debug-statements
2627
- id: end-of-file-fixer
2728
- id: mixed-line-ending
29+
- id: trailing-whitespace
2830
- id: fix-byte-order-marker
2931
- repo: https://github.com/psf/black
3032
rev: 24.10.0
@@ -36,3 +38,8 @@ repos:
3638
- id: codespell
3739
args: ['--write-changes']
3840
exclude: CHANGELOG.rst
41+
# XML Lint
42+
- repo: https://github.com/comkieffer/xml-linter-hook.git
43+
rev: 1.0.0
44+
hooks:
45+
- id: xmllint

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ This plugin can be started from your URDF or world.sdf file.
4646
<render_engine>ogre2</render_engine>
4747
</plugin>
4848
</gazebo>
49-
```
49+
```
5050

5151
you can also refer to the the [example.urdf.xacro](./urdf/example_d415_gazebo.urdf.xacro) included.
5252

urdf/_d405.gazebo.xacro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ For example:
2525
Assumptions:
2626
Simulated RGB and Depth sensors are in the same location as the RGB sensor of the physical camera.
2727
Simulated RGB and Depth sensors and have the same FOV as the RGB physical sensor.
28-
Note physical hardware publishes pointcloud in `camera_depth_optical_frame` where this sensor will use
28+
Note: physical hardware publishes pointcloud in `camera_depth_optical_frame` where this sensor will use
2929
the referenced camera color_frame. -->
3030
<xacro:property name="realsense_h_fov" value="${69 * pi/180}" />
3131
<xacro:property name="realsense_v_fov" value="${42 * pi/180}" />

urdf/_d415.gazebo.xacro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ For example:
2525
Assumptions:
2626
Simulated RGB and Depth sensors are in the same location as the RGB sensor of the physical camera.
2727
Simulated RGB and Depth sensors and have the same FOV as the RGB physical sensor.
28-
Note physical hardware publishes pointcloud in `camera_depth_optical_frame` where this sensor will use
28+
Note: physical hardware publishes pointcloud in `camera_depth_optical_frame` where this sensor will use
2929
the referenced camera color_frame. -->
3030
<xacro:property name="realsense_h_fov" value="${69 * pi/180}" />
3131
<xacro:property name="realsense_v_fov" value="${42 * pi/180}" />

urdf/_d435.gazebo.xacro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ For example:
2121
image_width:=1280
2222
image_height:=720">
2323

24-
<!-- Realsense D435 RGB properties
24+
<!-- Realsense D435 RGB properties
2525
Assumptions:
2626
Simulated RGB and Depth sensors are in the same location as the RGB sensor of the physical camera.
2727
Simulated RGB and Depth sensors and have the same FOV as the RGB physical sensor.
28-
Note physical hardware publishes pointcloud in `camera_depth_optical_frame` where this sensor will use
28+
Note: physical hardware publishes pointcloud in `camera_depth_optical_frame` where this sensor will use
2929
the referenced camera color_frame. -->
3030
<xacro:property name="realsense_h_fov" value="${87 * pi/180}" />
3131
<xacro:property name="realsense_v_fov" value="${58 * pi/180}" />

0 commit comments

Comments
 (0)