Skip to content

Commit

Permalink
Merge commit
Browse files Browse the repository at this point in the history
  • Loading branch information
a20r committed Feb 10, 2016
1 parent f0b5189 commit 92d9cf3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion launch/example.launch
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<param name="host" value="localhost"/>
<param name="port" value="9000"/>
<rosparam>
publishing:
publishing:
- /state
types:
- geometry_msgs/Point
Expand Down
4 changes: 3 additions & 1 deletion src/server/ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ def onConnect(self, request):
name = request.path[0:]
common.add_client(name, self)
self.name_of_client = name
self.lat_pubs[name[1:]] = rospy.Publisher("/jammi" + name + "/latency", Float32, queue_size=2)
topic_name = "/jammi{}/latency".format(name)
self.lat_pubs[name[1:]] = rospy.Publisher(topic_name, Float32,
queue_size=2)

def onMessage(self, payload, is_binary):
if is_binary:
Expand Down

0 comments on commit 92d9cf3

Please sign in to comment.