This file contains hidden or 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/python | |
import rospy | |
import baxter_interface | |
rospy.init_node("foobar") | |
l = baxter_interface.Limb('left') | |
def limb_breaker(tid, l): | |
while not rospy.is_shutdown(): |
This file contains hidden or 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 python | |
# Copyright (c) 2013-2015, Rethink Robotics | |
# All rights reserved. | |
# This script is meant to how the JTAS handles various numbers of points | |
# It executes a set of trajectories with 4 waypoints, then 3, then 2, then 1 waypoints. To run it: | |
# # one baxter.sh sourced terminal | |
# $ rosrun baxter_tools enable_robot.py -e | |
# $ rosrun baxter_interface joint_trajectory_action_server.py --mode velocity |
This file contains hidden or 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
Copyright (c) 2013-2015, Rethink Robotics | |
All rights reserved. | |
import time | |
if round(time.time() % 2): | |
foo = 10 / 0.0 |
This file contains hidden or 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/python | |
# Copyright (c) 2015, Rethink Robotics, Inc. | |
# Using this CvBridge Tutorial for converting | |
# ROS images to OpenCV2 images | |
# http://wiki.ros.org/cv_bridge/Tutorials/ConvertingBetweenROSImagesAndOpenCVImagesPython | |
# Using this OpenCV2 tutorial for saving Images: | |
# http://opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_gui/py_image_display/py_image_display.html |
This file contains hidden or 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
<?xml version="1.0"?> | |
<robot name="physics"> | |
<link name="base_link"> | |
<visual> | |
<geometry> | |
<cylinder length="0.6" radius="0.2"/> | |
</geometry> | |
<material name="blue"> | |
<color rgba="0 0 .8 1"/> | |
</material> |
This file contains hidden or 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
"file-types": { | |
'.launch': 'text.xml' | |
'.world': 'text.xml' | |
'.xacro': 'text.xml' | |
'.urdf': 'text.xml' | |
'.msg': 'source.yaml' | |
'.srv': 'source.yaml' | |
'CMakeLists.txt': 'source.cmake' | |
'.rosinstall': 'source.yaml' | |
} |
This file contains hidden or 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/python | |
import rospy | |
import baxter_interface | |
import numpy as np | |
rospy.init_node("torque_tester") | |
baxter_interface.robot_enable.RobotEnable().enable() | |
l = baxter_interface.Limb("left") | |
r = baxter_interface.Limb("right") | |
print "Moving the left arm to a neutral pose..." |
This file contains hidden or 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 python | |
# Copyright (c) 2013-2015, Rethink Robotics | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, | |
# this list of conditions and the following disclaimer. |
This file contains hidden or 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
/********************************************************************* | |
* Software License Agreement (BSD License) | |
* | |
* Copyright (c) 2013-2015, Rethink Robotics | |
* Copyright (c) 2013, Open Source Robotics Foundation | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: |
This file contains hidden or 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
/********************************************************************* | |
* Software License Agreement (BSD License) | |
* | |
* Copyright (c) 2013-2015, Rethink Robotics | |
* Copyright (c) 2013, Open Source Robotics Foundation | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: |
OlderNewer