Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonghi committed Jan 15, 2025
1 parent ede575b commit 4bc915d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/nanosaur/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
"Gazebo": "ros2 launch nanosaur_gazebo nanosaur_bridge.launch.py"
}

DEFAULT_ROBOT_CONFIG = {
'name': 'nanosaur',
'domain_id': 0
}


class Robot:

Expand All @@ -43,10 +48,7 @@ def load(cls, params):

def __init__(self, robot_config=None):
if robot_config is None:
robot_config = {
'name': 'nanosaur',
'domain_id': 0
}
robot_config = DEFAULT_ROBOT_CONFIG
# Load the robot configuration
for key, value in robot_config.items():
setattr(self, key, value)
Expand Down

0 comments on commit 4bc915d

Please sign in to comment.