Skip to content

Commit

Permalink
Limit zmq buffer to 1 and fix the commit for spdlog
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuyifengzju committed May 23, 2024
1 parent 21602ed commit 97396fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deoxys/InstallPackage
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ git clone https://github.com/jbeder/yaml-cpp.git

# download spdlog package
git clone https://github.com/gabime/spdlog.git
cd spdlog
git checkout ac55e60488032b9acde8940a5de099541c4515da
cd ..

# download protobuf
git clone --recursive https://github.com/protocolbuffers/protobuf.git
Expand Down
1 change: 1 addition & 0 deletions deoxys/franka-interface/src/utils/zmq_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ZMQSubscriber::ZMQSubscriber(std::string ip, std::string port,
std::string filter)
: subscriber_socket_(context_, zmqpp::socket_type::subscribe) {
sub_host_ = "tcp://" + ip + ":" + port;
subscriber_socket_.set(zmqpp::socket_option::conflate, 1);
subscriber_socket_.subscribe(filter);
subscriber_socket_.connect(sub_host_);
};
Expand Down

0 comments on commit 97396fd

Please sign in to comment.