Ask Your Question
1

Need help, where to start.

asked 2013-04-08 04:13:56 -0500

Kirill_Sokolov gravatar image

updated 2014-01-28 17:16:05 -0500

ngrennan gravatar image

Hi, I'm beginner in ROS, and don't know where to start my task. I'm studied beginner tutorials and want to build robot. My robot is tricycle with two drive wheels and one slave respectively. Drivers are control by two servo, and servo must controled by ROS via modbus protocol. For a start I want moving it (forward, backward, left, right) from keyboard. And dont know what nodes me need.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
2

answered 2013-04-08 06:08:50 -0500

Hi Kirill,

I suggest you write a "driver" node for your robot. It should subscribe to a topic called "cmd_vel" (although you can rename it if you want) of type geometry_msgs/Twist. The Twist messages tell you how fast the robot should move forward (msg.linear.x) and how fast it should turn (msg.angular.z); you can ignore all other fields of the message. You can have a look at the turtlebot_node to get an idea how to calculate individual speeds for the two motors from this info. Then you "only" have to send this speed to the servos. :-)

As a publisher, you can use the keyboard teleop node from the turtlebot_teleop package (don't be confused by the name turtlebot, it works with all robots).

edit flag offensive delete link more

Comments

O good, it is what I need, thanks Martin=). So at node "driver" i have only implementation of the protocol modbus. And so turtlebot_teleop publishing messages of type Twist?

Kirill_Sokolov gravatar image Kirill_Sokolov  ( 2013-04-09 09:09:27 -0500 )edit

Exactly, that's how it works. Glad I could help. :-)

Martin Günther gravatar image Martin Günther  ( 2013-04-10 01:20:17 -0500 )edit
1

answered 2013-04-08 05:37:29 -0500

davinci gravatar image

The industrial stack has some modbus programs but they are for a gripper. Perhaps you can modify them for your servo drivers. But that is not easy for a beginner.

The Robotiq package

edit flag offensive delete link more

Comments

I think I do not need to use this stack, because it is realy dificult for me now=)

Kirill_Sokolov gravatar image Kirill_Sokolov  ( 2013-04-09 09:12:39 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-04-08 04:13:56 -0500

Seen: 259 times

Last updated: Apr 08 '13