Skip to content

Commit

Permalink
🔥 copy.copy is slow like a 🐢. Rates now match up on server and clients.
Browse files Browse the repository at this point in the history
@braraki it's ready for you
  • Loading branch information
a20r committed Feb 13, 2018
1 parent 120126f commit 9657e09
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
23 changes: 23 additions & 0 deletions launch/bar.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<launch>
<arg name="host" default="wallar.csail.mit.edu"/>
<arg name="port" default="8080"/>
<node pkg="canopy_client" type="client_node.py" name="bar_client_node" output="screen">
<param name="name" value="bar"/>
<param name="host" value="$(arg host)"/>
<param name="port" value="$(arg port)"/>
<param name="private_key" value="abc" />
<param name="description" value="bar robot" />
<!--<rosparam>
publishing:
- /filtered_state
types:
- geometry_msgs/PointStamped
trusted:
- ".*"
</rosparam> -->
</node>

<node pkg="rostopic" type="rostopic" name="filtered_state_pub"
args="pub -sr 40 /filtered_state geometry_msgs/PointStamped '{header: {stamp: now, frame_id: base_link}, point: {x: 2.0, y: 1.0, z: 1.0}}'" />
</launch>
3 changes: 2 additions & 1 deletion src/receiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def run(self):

# Returns the formatted last received message.
def updates(self):
payloads = copy.copy(self.values)
#payloads = copy.copy(self.values)
payloads = self.values
self.values = dict()
return payloads

Expand Down

0 comments on commit 9657e09

Please sign in to comment.