Adding geometry_msgs/Pose caused geometry_msgs/Twist value to change [rosserial]
This is what I have tried,
1) Creating a msg file as shown below:
robo_base/Encoder enc
geometry_msgs/Twist twist
2) Generate the header files for catkinws/devel/include and roslib, build the package and stuffs
3) When I launch the nodes and rostopic echo /robo_data (What I named it), I got the velocity at around 0.27ish m/s (Joystick control, max is 0.25).
4) Then, I tried again by adding a new line into the message file:
robo_base/Encoder enc
geometry_msgs/Pose pose
geometry_msgs/Twist twist
5) Repeat step 2 and 3, now the velocity turned into 0.34ish (Nothing changed in the joystick files, should stayed somewhere around 0.25).
May I know what is causing the error above or does anyone knows any fix for it? Thanks.
Asked by ariccspstk on 2020-11-24 21:12:03 UTC
Answers
Fixed by removing the delay after nh.spinOnce(), does anyone knows the reason behind?
Asked by ariccspstk on 2020-11-25 21:27:45 UTC
Comments