Skip to content

Fix launchfiles for different worlds #4

@SiviDomaEdu

Description

@SiviDomaEdu

Robot spawn coordinates are hardcoded in the launch file, which works for the default world, but when setting an other world via argument, robots might be spawned outside of the rooms.

We need to somehow achieve correct robot-spawning logic. Maybe create different launchfiles for different worlds, or add a case structure to select the correct initial coordinates for each world

I've tested, these coordinates work for house.sdf:

    robot_1 = {'name': 'robot_1',
               'x': -1.8,
               'y': -1.5,
               'yaw': 1.5708}
    robot_1['quaternion'] = quaternion_from_euler(0.0, 0.0, robot_1['yaw'])

    robot_2 = {'name': 'robot_2',
               'x': 2.4,
               'y': 1.7,
               'yaw': 2.3562}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions