Commit d2b4918b authored by fmg005's avatar fmg005

changed hostname to 'cmdmaster'

parent a33af77a
......@@ -9,14 +9,14 @@ m_logger(logger) {
* `publish` to `monitor topic` -> messages of type `std_msgs/String`
*/
json_message = "{\"op\":\"advertise\", \"topic\": \""+m_topic+"\", \"type\": \""+m_type+"\"}";
m_host = "localhost"; /* rosbridge server runs on localhost */
m_host = "cmdmaster"; /* rosbridge server runs on localhost */
port = 9090; /* rosbridge server uses this port number */
SOCKET_TIMEOUT_SEC = 0;
SOCKET_TIMEOUT_uSEC = 500000;/* block for 0.5s */
}
void tcp_monitor_client::setup_connection() {
/* create a UDP socket */
/* create a TCP socket */
fd = socket(AF_INET, SOCK_STREAM, 0);
m_logger->debug("Connecting to rosbridge server for monitor data ...");
if (fd < 0) {
......
......@@ -10,7 +10,7 @@ tcp_pump_client::tcp_pump_client(const string& topic, const string& type, \
* 'subscribe' to 'chatter topic' publishing messages of type 'std_msgs/String'
*/
json_message = "{\"op\":\"subscribe\", \"topic\": \""+m_topic+"\", \"type\": \""+m_type+"\"}";
m_host = "localhost"; /* rosbridge server runs on localhost */
m_host = "cmdmaster"; /* rosbridge server runs on localhost */
port = 9090; /* rosbridge server uses this port number */
SOCKET_TIMEOUT_SEC = 0;
SOCKET_TIMEOUT_uSEC = 100000; /* 100 millisecond*/
......@@ -21,7 +21,7 @@ tcp_pump_client::tcp_pump_client(const string& topic, const string& type, \
}
void tcp_pump_client::setup_connection() {
/* create a UDP socket */
/* create a TCP socket */
fd = socket(AF_INET, SOCK_STREAM, 0);
m_logger->debug("Connecting to rosbridge server for "+m_substance+" pump data ...");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment