Skip to content

Commit 83cdc5b

Browse files
author
Roman Käslin
committed
Parsing for distance DATA without Space before topic, topic distance renamed to distance_stair
1 parent 2062b88 commit 83cdc5b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ int main(int argc , char **argv)
4444

4545
tcp_client beta(1,"beta",n,"Float64"); // Angle on the stairs
4646
tcp_client stair_parameters(1,"stair_parameters",n,"Float64MultiArray"); // List of parameters: step height, step depth, distance traveled, sensor height, sensor angle
47-
tcp_client distance(1,"distance",n,"Float64MultiArray"); // Distance to steps (first_right,first_left,last_right,last_left)
47+
tcp_client distance(1,"distance_stair",n,"Float64MultiArray"); // Distance to steps (first_right,first_left,last_right,last_left)
4848

4949
//MyRIO --> ROS---------------------------------------------------------------
5050
tcp_client imu(2,"IMU",n,"IMU");

src/tcp_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ void tcp_client::parser(std::string s) {
152152
publish();
153153
//ROS_INFO("Message has been parsed.");
154154
}
155-
if ((header=="SRV") && (header2 ==_topic) )
155+
if ((header=="SRV") && (header2 == topic) )
156156
{
157157
//ROS_INFO("string: %s",s.c_str());
158158
ros::ServiceClient client = n_.serviceClient<scalevo_msgs::Starter>(header2);

0 commit comments

Comments
 (0)