This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from environment_interface.implementations.friendly_arm import FriendlyArm | |
from environment_interface.configs.robot_configs import make_robot_config_by_name | |
from ignition.environment import IgnitionEnvironment | |
from ignition.instance import IgnitionPartitionType | |
def deadlock(): | |
"""Run generic arm controller tests on IgnArmController""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import trimesh | |
from fire import Fire | |
from typing import Optional | |
import numpy as np | |
def convert_and_scale_stl(*, in_stl_path: str, out_stl_path: str, scale: Optional[float] = None): | |
mesh = trimesh.load(in_stl_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import annotations | |
def get_robot_ee_info(path: str) -> dict[str, str]: | |
with open(path, 'r') as fh: | |
all = fh.readlines() | |
robot_ee_info = dict() | |
for line in all: | |
line = line.strip() | |
robot_ee_id, type = line.split(":") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To install, make a bookmark and add the code below as the URL | |
// This only works when you are browing a real_world PR | |
// e.g. https://github.com/vicariousinc/real_world/pull/18545 | |
javascript:(function() { | |
const url = window.location.href; | |
let re = /pull\/(?<PR>[0-9]+)/; | |
let match = url.match(re); | |
const pr_id = match.groups["PR"]; | |
open('https://jenkins.corp.vicarious.com/job/vcrs/job/real_world/job/PR-' + pr_id).focus(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To install, make a bookmark and add the code below as the URL | |
// This only works when you are browing a real_world PR | |
// e.g. https://github.com/vicariousinc/real_world/pull/18545 | |
javascript:(function() { | |
const url = window.location.href; | |
let re = /pull\/(?<PR>[0-9]+)/; | |
let match = url.match(re); | |
const pr_id = match.groups["PR"]; | |
open('http://docs.corp.vicarious.com/PR/PR-' + pr_id + '/doc/overview.html').focus(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<sdf xmlns:vicarious="http://corp.vicarious.com/sdf/schema" version="1.8"> | |
<!-- based on shapes.sdf example --> | |
<world name="bkb_kitting"> | |
<physics name="physics_settings" type="dart"> | |
<max_step_size>0.001</max_step_size> | |
<real_time_factor>1.0</real_time_factor> | |
</physics> | |
<plugin filename="libignition-gazebo-physics-system.so" name="ignition::gazebo::systems::Physics"/> | |
<plugin filename="libignition-gazebo-user-commands-system.so" name="ignition::gazebo::systems::UserCommands"/> | |
<plugin filename="libignition-gazebo-scene-broadcaster-system.so" name="ignition::gazebo::systems::SceneBroadcaster"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<sdf version="1.7"> | |
<!-- based on shapes.sdf example --> | |
<world name="multi_logical_camera"> | |
<physics name="physics_settings" type="dart"> | |
<max_step_size>0.001</max_step_size> | |
<real_time_factor>1.0</real_time_factor> | |
</physics> | |
<plugin filename="libignition-gazebo-physics-system.so" name="ignition::gazebo::systems::Physics"/> | |
<plugin filename="libignition-gazebo-user-commands-system.so" name="ignition::gazebo::systems::UserCommands"/> | |
<plugin filename="libignition-gazebo-scene-broadcaster-system.so" name="ignition::gazebo::systems::SceneBroadcaster"/> |