Hacks4ROS / h4r_ev3_ctrl

ROS Node for managing EV3 with ROS Control
GNU General Public License v3.0
21 stars 12 forks source link

Can read the position from motor, but cannot control it #20

Closed ft1148137 closed 4 years ago

ft1148137 commented 4 years ago

Hello, I use a usb-cable to connect the ev3 with pi4. In pi4 i have install the ros-melodic. The communication seems good.

I can list all Service in Brick by using rosservice list. From outportstate topic i can read the position and velocity, wenn i rotate the wheel by my hand. But wenn i publish a message just like

rostopic pub /ev3dev/OutPortA/command std_msgs/Float64 "data: 5.0"

,the Motor does not move.

When i use roswtf, the output shows Ev3ControllNode, OutportA, OutportB do not have a subscriber.

Thanks for your help

ft1148137 commented 4 years ago

ok, i fixed. when i use ip. I get this problem. use hostname