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 python2 | |
import rospy | |
import math | |
from nav_msgs.msg import Odometry | |
from geometry_msgs.msg import PoseStamped | |
from geometry_msgs.msg import Twist | |
from tf.transformations import euler_from_quaternion | |
class Lab2: |
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
<!-- | |
lab 2 woop woop | |
--> | |
<launch> | |
<!-- lab2_node --> | |
<!-- | |
<group ns="/"> | |
<param name="rosversion" command="rosversion roslaunch" /> |
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
//Your code here | |
double baseHeight = 5 | |
double height = 60 | |
CSG base = new Cube(190,// X dimention | |
80,// Y dimention | |
baseHeight// Z dimention | |
).toCSG().toXMin().toZMin().toYMin() | |
CSG firstSideWall = new Cube(190,// X dimention | |
4,// Y dimention |
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
double z =70; | |
CSG breadboard = new Cube(85,// X dimention | |
55,// Y dimention | |
z// Z dimention | |
).toCSG().toXMin().toYMin().toZMin().movex(270).movey(20) | |
CSG cableBox = new Cube(190,// X dimention |
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
{} |
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
//Move and rotate opperations | |
double size =40; | |
CSG cube = new Cube(size,// X dimention | |
size,// Y dimention | |
size// Z dimention | |
).toCSG() | |
//cubeIntersectSphere = cubeIntersectSphere.move(x,y,z);// vector notation | |
CSG movedCube = cube | |
.movex(10) |
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
import com.neuronrobotics.bowlerstudio.vitamins.Vitamins; | |
CSG vitaminFromScript = Vitamins.get("vexMotor","393") | |
.roty(90) | |
return vitaminFromScript |