how to make velocity of turtlebot is smoother??
I installed this library: sudo apt install ros-indigo-yocs-velocity-smoother
and I am following here link text , those topics that I use for velocity:
self.cmd_pub = rospy.Publisher("/mobile_base/commands/velocity", Twist, queue_size=10)
self.cmd_pub = rospy.Publisher('/cmd_vel_mux/input/navi',Twist, queue_size=1)
self.cmd_pub = rospy.Publisher('/cmd_vel_mux/input/safety_controller',Twist, queue_size=1)
self.cmd_pub = rospy.Publisher('/cmd_vel_mux/input/teleop',Twist, queue_size=1)
Note: I just use one of them in my codes, not together.
I am working in people detection, but the robot sometimes loses the target, thus it stops suddenly. I need that the robot stops smoothly
how to use this library correctly???
I tried using this topic but it not move, I think that something is wrong.
self.cmd_pub = rospy.Publisher('/smooth_cmd_vel',Twist, queue_size=1)
Please help me or any suggestion
Thank you in advance
Why are you using the same variable name for all the publishers?
I don't use them together, sorry about this, I just use one of them, the robot move
I edited my question