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 »

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: 10339
Joined: 14 Dec 2012, 00:25

Re: Bug in ros_bubble_rob.cpp

Post by coppelia »

You are right! Thanks again for your help Felix.

Cheers

Post Reply