Skip to content

Commit

Permalink
Use stl mesh for hydra marker. Adds the mesh
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Medvedev committed Oct 27, 2013
1 parent 069aacf commit 03a2d67
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
2 changes: 2 additions & 0 deletions meshes/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Hydra mesh source:
http://www.zspline.net/blog/2012/01/15/the-razer-hydra-3d-model/
Binary file added meshes/hydra.stl
Binary file not shown.
22 changes: 14 additions & 8 deletions src/vis/vis.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,23 @@ def show_gripper(self, limb):
msg.pose.position.y = +0.025
self.pub.publish(msg)

# Hydra
msg.type = Marker.MESH_RESOURCE
msg.id += 1
msg.scale.x = 0.06
msg.scale.y = 0.04
msg.scale.z = 0.18
msg.pose.position.x = -0.09
msg.scale.x = 1
msg.scale.y = 1
msg.scale.z = 1
msg.pose.position.x = -0.04
msg.pose.position.y = 0
msg.pose.position.z = 0
msg.pose.orientation.z = 1
msg.pose.position.z = -0.01

msg.lifetime = rospy.Duration()
msg.pose.orientation.x = 0
msg.pose.orientation.y = 0
msg.pose.orientation.z = 0
msg.pose.orientation.w = 1
msg.color.r = 0.2
msg.color.g = 0.2
msg.color.b = 0.2
msg.color.a = 0.2
msg.color.a = 0.5
msg.mesh_resource = 'package://baxter_hydra_teleop/meshes/hydra.stl'
self.pub.publish(msg)

0 comments on commit 03a2d67

Please sign in to comment.