ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

How to publish to PCA9685 driver by dheera

asked 2020-06-12 08:42:30 -0500

rosstarter gravatar image

Hello

I tryed to publish with the command: rostopic pub /command std_msgs/Int32MultiArray “ {data: [-1, -1, -1, -1, -1, -1, -1, -1, 32767, 65535, 0, -1, -1, -1, -1, -1]}”

(Didn´t use " /pca9685_node/command " only " /command " this time)

and it worked. The Motor now moved for About 5 seconds. After that i could not move the Motor anymore with the same command. I first had to Restart the node and then it worked again one time.

What did i do wrong?

Here is the rostopic list you asked for: /command /pca9685_node/command /rosout /rosout_agg

Before we started our communication here: link text

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2021-01-01 14:13:30 -0500

Hi everyone, i'm trying to get this command to work aswell. but i get this error message:

Usage: rostopic pub /topic type [args...]
rostopic: error: no such option: -,

then i tried to remove the "-" for example:

rostopic pub /command std_msgs/Int32MultiArray “{data: [2000, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]}”

and that's what i get:

rostopic: error: Argument error: while parsing a flow node
expected the node content, but found '<stream end>'
  in "<string>", line 1, column 7:
    [2000,
          ^

i hope anyone can help me out:)

edit flag offensive delete link more

Question Tools

Stats

Asked: 2020-06-12 08:42:30 -0500

Seen: 284 times

Last updated: Jun 12 '20