Skip to content

Commit

Permalink
test on mocap
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre-Bonneau committed Jan 5, 2021
1 parent c5f2e2f commit cf5e606
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/mocap/mocap_human_localization_params.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
optitrack_human_topic_names: {"Helmet_2": 1,"Helmet_4": 2}
optitrack_human_topic_names: {"Helmet_2": 1}
1 change: 0 additions & 1 deletion launch/utils/mocap.launch
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<launch>

<!-- <arg name="optitrack_human_topic_names" default="person_01_torso"/> -->
<arg name="world2map_x" default ="6.4868"/>
<arg name="world2map_y" default ="2.8506"/>
<arg name="world2map_z" default ="0"/>
Expand Down
5 changes: 2 additions & 3 deletions scripts/mocap_human_localization_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self):
self.tf_bridge = TfBridge()
self.tfOptitrack2Humans_ ={}
self.subscribedNodeNames =rospy.get_param("~optitrack_human_topic_names",None)
# print self.subscribedNodeNames
print self.subscribedNodeNames
# self.subscribedNodeNames={"Neophasia": 1}

self.personSubs =[]
Expand All @@ -48,15 +48,14 @@ def __init__(self):
for key in self.subscribedNodeNames.keys():
fullTopicName = HUMAN_SUB_PREPEND + key

#print fullTopicName
self.personSubs.append(rospy.Subscriber(
fullTopicName,
or_pose_estimator_state,
self.updateMocapPersonPose_callback,
self.subscribedNodeNames[key]))
new_node =SceneNode(label="human")
shape = Mesh("package://uwds3/models/cad_models/human/cylinder_man.urdf",
x=0, y=0, z=0,
x=0, y=-0.4, z=0,
rx=0, ry=0, rz=0)
r,g,b=0,0,0
shape.color[0] = r
Expand Down

0 comments on commit cf5e606

Please sign in to comment.