Skip to content

Commit 6e8cf54

Browse files
Added comments to 1 function across 1 file
1 parent 0228eb9 commit 6e8cf54

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

components/g2o_cpp/circle_gen.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ def add_noise(value, std_dev):
1111

1212

1313
def main():
14+
"""
15+
Generates a g2o file for a robot's circular motion along a straight line with
16+
observed noisy landmarks. It takes in parameters for number of steps, radius,
17+
angle step, odometry noise, odometry angle noise, measurement noise, and
18+
landmarks, and writes them to a file as vertices, poses, observation edges,
19+
and noisy edges.
20+
21+
"""
1422
num_steps = 50 # Number of steps in the circle
1523
angle_step = 360 / num_steps # Angle step in degrees
1624
radius = 3.0 # Radius of the circle

0 commit comments

Comments
 (0)