diff --git a/meshes/README b/meshes/README new file mode 100644 index 0000000..f13409c --- /dev/null +++ b/meshes/README @@ -0,0 +1,2 @@ +Hydra mesh source: +http://www.zspline.net/blog/2012/01/15/the-razer-hydra-3d-model/ diff --git a/meshes/hydra.stl b/meshes/hydra.stl new file mode 100644 index 0000000..07237ab Binary files /dev/null and b/meshes/hydra.stl differ diff --git a/src/vis/vis.py b/src/vis/vis.py index d01e92e..24cd820 100644 --- a/src/vis/vis.py +++ b/src/vis/vis.py @@ -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)