Skip to content

Commit

Permalink
sim: Updated ros2 publishing times
Browse files Browse the repository at this point in the history
The publishing interval of the odom tf was causing issues in the costmaps. Also
incrased the publishing rate of lidar
  • Loading branch information
dervelakos committed Jan 18, 2025
1 parent 0032423 commit b11b2e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/RosNodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(self, vehicle, topicPrefix):

self.tf_broadcaster = TransformBroadcaster(self)

self.timer = self.create_timer(0.5, self.timerCallback)
self.timer = self.create_timer(0.03, self.timerCallback)

def broadcastTransform(self):
# Broadcast TF
Expand Down
2 changes: 1 addition & 1 deletion src/Sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def calculateIntersection(x, y, dirX, dirY, obj):

class Lidar:
def __init__(self, simEngine, vehicle, rosNode=None,
numRays=360, rayAngleIncrement=1, interval=1/60):
numRays=360, rayAngleIncrement=1, interval=2/60):
self.numRays = numRays
self.rayAngleIncrement = rayAngleIncrement

Expand Down

0 comments on commit b11b2e4

Please sign in to comment.