Bug in ros_bubble_rob.cpp

Report crashes, strange behaviour, or apparent bugs
Post Reply
fherrmann
Posts: 3
Joined: 07 Aug 2013, 10:33

Bug in ros_bubble_rob.cpp

Post by fherrmann » 27 Jan 2014, 16:27

Hello Coppelia,

there is a small bug in the ros_bubble_rob.cpp file.
The published vrep_common::JointSetStateData motorSpeeds will blow up endlessly.

Everytime it jumps into the while, the handles etc. will be appended to the existing message.

Line 122 - 148

Code: Select all

vrep_common::JointSetStateData motorSpeeds;
	while (ros::ok()&&simulationRunning)
	...
	motorSpeeds.handles.data.push_back(leftMotorHandle);
	motorSpeeds.handles.data.push_back(rightMotorHandle);
	...
	motorSpeedPub.publish(motorSpeeds);
Greets Felix

coppelia
Site Admin
Posts: 6559
Joined: 14 Dec 2012, 00:25

Re: Bug in ros_bubble_rob.cpp

Post by coppelia » 27 Jan 2014, 17:47

You are right! Thanks again for your help Felix.

Cheers

Post Reply