Gazebo | Ignition | Community
Ask Your Question
0

rostopic send msgs to robot in ros control of gazebo didn't work

asked 2015-03-03 17:34:39 -0500

crazymumu gravatar image

updated 2015-03-03 23:33:33 -0500

lin@lin-VirtualBox:~$ rostopic list
/clock
/gazebo/linkstates
/gazebo/model
states
/gazebo/parameterdescriptions
/gazebo/parameter
updates
/gazebo/setlinkstate
/gazebo/setmodelstate
/myrobot/jointstates
/myrobot/leftWheel
effortcontroller/command
/myrobot/rightWheel
effortcontroller/command
/rosout
/rosout
agg
/tf
lin@lin-VirtualBox:~$ rostopic pub -1 /myrobot/leftWheeleffortcontroller/command std_msgs/Float64 "data: 1.5"
publishing and latching message for 3.0 seconds
lin@lin-VirtualBox:~$

I am using ros_contol to control my robot move. I roslaunch the file, no error. but send command with the topic i have, but the robot didn't move.
thanks for help, all.

INFO:
process[myrobot/controllerspawner-1]: started with pid [6845]
process[robot
statepublisher-2]: started with pid [6846]
/opt/ros/indigo/lib/robot
statepublisher/robotstatepublisher
[INFO] [WallTime: 1425424374.533474] [0.000000] Controller Spawner: Waiting for service controller
manager/loadcontroller
[INFO] [WallTime: 1425424374.534971] [0.000000] Controller Spawner: Waiting for service controller
manager/switchcontroller
[INFO] [WallTime: 1425424374.537735] [0.000000] Controller Spawner: Waiting for service controller
manager/unloadcontroller
[INFO] [WallTime: 1425424374.541571] [0.000000] Loading controller: joint
statecontroller
[INFO] [WallTime: 1425424374.696059] [54.878000] Loading controller: rightWheel
effortcontroller
[INFO] [WallTime: 1425424374.970727] [55.118000] Loading controller: leftWheel
effortcontroller
[INFO] [WallTime: 1425424374.987635] [55.132000] Controller Spawner: Loaded controllers: joint
statecontroller, rightWheeleffortcontroller, leftWheeleffortcontroller
[INFO] [WallTime: 1425424374.992025] [55.137000] Started controllers: joint
statecontroller, rightWheeleffortcontroller, leftWheeleffort_controller

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-03-04 11:23:36 -0500

Jose Luis Rivero gravatar image

Any ros_contol question is probably best answered directly from the upstream issue tracker at:

https://github.com/ros-simulation/gazebo_ros_pkgs

edit flag offensive delete link more

Comments

thanks for your help

crazymumu gravatar imagecrazymumu ( 2015-03-04 16:16:21 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2015-03-03 17:34:39 -0500

Seen: 371 times

Last updated: Mar 04 '15