HumaRobotics / mybot_gazebo_tutorial

Tutorial on creating a ROS-enabled mobile robot in Gazebo
33 stars 24 forks source link

how to control left and right wheel #3

Open jossichrist opened 6 years ago

jossichrist commented 6 years ago

i got error once i ran gazebo :

Exception thrown while initializing controller rightWheel_effort_controller. Could not find resource 'right_wheel_hinge' in 'hardware_interface::EffortJointInterface'.

so, i couldnt run this cmd:

rostopic pub -1 /mybot/leftWheel_effort_controller/command std_msgs/Float64 "data: 1.5" rostopic pub -1 /mybot/rightWheel_effort_controller/command std_msgs/Float64 "data: 1.0"

What shoud i do?

Thank you in advance

Philippe-Capdepuy commented 6 years ago

Dear Josua,

Which version of ROS are you using? Your issue could be related to a missing package such as this one: ros- indigo-effort-controllers (change ROS distribution accordingly) You can install it using: sudo apt-get install ros-indigo-effort-controllers

To be honest this tutorial is quite outdated so I'm not sure it's still working fine for recent ROS versions.

Best regards,

Philippe

2018-01-11 8:01 GMT+01:00 Josua Christanto notifications@github.com:

i got error once i ran gazebo :

Exception thrown while initializing controller rightWheel_effort_controller. Could not find resource 'right_wheel_hinge' in 'hardware_interface:: EffortJointInterface'.

so, i couldnt run this cmd:

rostopic pub -1 /mybot/leftWheel_effort_controller/command std_msgs/Float64 "data: 1.5" rostopic pub -1 /mybot/rightWheel_effort_controller/command std_msgs/Float64 "data: 1.0"

What shoud i do?

Thank you in advance

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/HumaRobotics/mybot_gazebo_tutorial/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/ALNeauH0FqvGOvXOdWYymEHoT_gD1K1hks5tJbHLgaJpZM4RaZpY .

--

Regards,

Dr. Philippe Capdepuy Chief Technology Officer

Génération Robots Tel : +33 5 56 39 37 05 www.generationrobots.com Keep updated - Blog http://www.generationrobots.com/blog/fr/ Discover our GR Lab - R&D http://www.generationrobots.com/blog/fr/2016/10/le-gr-lab-notre-bureau-detudes-en-robotique-de-service-professionnelle/

subodh-malgonde commented 6 years ago

The solution described here https://github.com/HumaRobotics/mybot_gazebo_tutorial/issues/4#issuecomment-411980296 works for me.