Skip to content

Instantly share code, notes, and snippets.

@CreativeInterested
CreativeInterested / gist:189706ce65ec99b87207087234c0dde2
Created February 7, 2025 06:39
originbot_config.yaml (for rmf physical robot integration)
# FLEET CONFIG =================================================================
# RMF Fleet parameters
rmf_fleet:
name: "originbot"
fleet_manager:
prefix: "http://127.0.0.1:8000"
user: "some_user"
password: "some_password"
limits:
<?xml version='1.0' ?>
<launch>
<arg name="use_sim_time" default="true"/>
<arg name="failover_mode" default="false"/>
<arg name="map_name" default="lab07" description="Name of the rmf_gazebo map to simulate" />
<!-- Common launch -->
<include file="$(find-pkg-share rmf_demos)/common.launch.xml">
<arg name="use_sim_time" value="$(var use_sim_time)"/>
@CreativeInterested
CreativeInterested / gist:2678525be72424fdbe2d119d3c5234bb
Created February 7, 2025 06:37
fleet_adapter.py code (for rmf physical robot integration)
# Copyright 2021 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@CreativeInterested
CreativeInterested / gist:25b221032cc9b72442f7051e2863e122
Created February 7, 2025 06:36
robot_api_server_originbot.py code (for rmf physical robot integration)
#! /usr/bin/env python3
import sys
import math
import threading
import rclpy
import uvicorn
from fastapi import FastAPI
from rclpy.node import Node
from rclpy.qos import qos_profile_system_default
from rclpy.qos import ReliabilityPolicy, QoSProfile
@CreativeInterested
CreativeInterested / gist:2144f578b345675d5d80c60c983a1d8f
Created February 7, 2025 06:35
RobotCommandHandle.py code (for rmf physical robot integration)
#! /usr/bin/env python3
from tf_transformations import quaternion_from_euler
from tf_transformations import euler_from_quaternion
from rclpy.qos import ReliabilityPolicy, QoSProfile, HistoryPolicy, DurabilityPolicy
from rmf_fleet_msgs.msg import PathRequest
from rmf_fleet_msgs.msg import Location
from sensor_msgs.msg import BatteryState
import rclpy
from rclpy.action import ActionClient
@CreativeInterested
CreativeInterested / gist:dcb5c96204184e82154b2a931c765b3e
Created February 7, 2025 06:34
RobotClientAPI.py code (for rmf physical robot integration)
#! /usr/bin/env python3
from tf_transformations import quaternion_from_euler
from tf_transformations import euler_from_quaternion
from rclpy.qos import ReliabilityPolicy, QoSProfile, HistoryPolicy, DurabilityPolicy
from rmf_fleet_msgs.msg import PathRequest
from rmf_fleet_msgs.msg import Location
from sensor_msgs.msg import BatteryState
import rclpy
from rclpy.action import ActionClient
@CreativeInterested
CreativeInterested / gist:702fbc887bbf9f990498ddb1c8ada722
Created February 7, 2025 06:33
rmf_to_nav.py code (for rmf physical robot integration)
#! /usr/bin/env python3
from tf_transformations import quaternion_from_euler
from tf_transformations import euler_from_quaternion
from rclpy.qos import ReliabilityPolicy, QoSProfile, HistoryPolicy, DurabilityPolicy
from rmf_fleet_msgs.msg import PathRequest
from rmf_fleet_msgs.msg import Location
from sensor_msgs.msg import BatteryState
import rclpy
from rclpy.action import ActionClient