[Closed] Double instead of integer

Hello, the output of my path planner is a combination of straight lines and curvatures. I want to follow these paths by these four commands:
rosbot.move_forward(int time);
rosbot.move_backwards(int time)
rosbot.turn(“clockwise”, int time);
rosbot.turn(“counterclockwise”, int time);

But the issue is since the straight lines and curvatures have different lengths, the time needed to be followed by each is not necessarily an integer. Is there any way to pass a double number, as the time, to those four commands?

Hi Hoomaan

Please check out ROS wiki. You can find answer for your question here.

Best regards,
Hubert