ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hello @kak13,
I tried to run like this; ros2 topic pub --once /joint_states sensor_msgs/msg/JointState '{name, "front_right_wheel", position: [0.0], velocity: [1.0], effort: [0.0]}' --once
There are many mistakes in your command. 1. {name, "front_right_wheel" : Name is not properly defined. 2. --once : you are using this 2 times in your command. 3. string[] name = you have to pass in list formate, I think you are passing a single string.
ros2 topic pub --once /turtle1/cmd_vel geometry_msgs/msg/Twist "{name: ["<your-name>], position: [0.0], velocity: [1.0], effort: [0.0]"}"
2 | No.2 Revision |
Hello @kak13,
I tried to run like this; ros2 topic pub --once /joint_states sensor_msgs/msg/JointState '{name, "front_right_wheel", position: [0.0], velocity: [1.0], effort: [0.0]}' --once
There are many mistakes in your command.
ros2 topic pub --once /turtle1/cmd_vel geometry_msgs/msg/Twist "{name: ["<your-name>], position: [0.0], velocity: [1.0], effort: [0.0]"}"
3 | No.3 Revision |
Hello @kak13,
I tried to run like this; ros2 topic pub --once /joint_states sensor_msgs/msg/JointState '{name, "front_right_wheel", position: [0.0], velocity: [1.0], effort: [0.0]}' --once
There are many mistakes in your command.
{name, "front_right_wheel" : Name is not properly defined.
--once : you are using this 2 times in your command.
string[] name = you have to pass in list formate, I think you are passing a single string.
ros2 topic pub --once /turtle1/cmd_vel geometry_msgs/msg/Twist "{name: ["<your-name>], position: [0.0], velocity: [1.0], effort: [0.0]"}"
Try this if you are having any issues feel free to drop commet.
4 | No.4 Revision |
Hello @kak13,
I tried to run like this; ros2 topic pub --once /joint_states sensor_msgs/msg/JointState '{name, "front_right_wheel", position: [0.0], velocity: [1.0], effort: [0.0]}' --once
There are many mistakes in your command.
{name, "front_right_wheel" : Name is not properly defined.
--once : you are using this 2 times in your command.
string[] name = you have to pass in list formate, I think you are passing a single string.
ros2 topic pub --once /turtle1/cmd_vel geometry_msgs/msg/Twist "{name: ["<your-name>], position: [0.0], velocity: [1.0], effort: [0.0]"}"
Try this if you are having any issues feel free to drop commet.commet. I think this should work.
5 | No.5 Revision |
Hello @kak13,
I tried to run like this; ros2 topic pub --once /joint_states sensor_msgs/msg/JointState '{name, "front_right_wheel", position: [0.0], velocity: [1.0], effort: [0.0]}' --once
There are many mistakes in your command.
{name, "front_right_wheel" : Name is not properly defined.
--once : you are using this 2 times in your command.
string[] name = you have to pass in list formate, I think you are passing a single string.
ros2 topic pub --once /turtle1/cmd_vel geometry_msgs/msg/Twist "{name: ["<your-name>], position: [0.0], velocity: [1.0], effort: [0.0]"}"
Try this if you are having any issues feel free to drop commet. I think this should work.
6 | No.6 Revision |
Hello @kak13,
I tried to run like this; ros2 topic pub --once /joint_states sensor_msgs/msg/JointState '{name, "front_right_wheel", position: [0.0], velocity: [1.0], effort: [0.0]}' --once
There are many mistakes in your command.
{name, "front_right_wheel" : Name is not properly defined.
--once : you are using this 2 times in your command.
string[] name = you have to pass in list formate, I think you are passing a single string.
ros2 topic pub --once /turtle1/cmd_vel geometry_msgs/msg/Twist "{name:
["<your-name>], ["<your-name>"], position: [0.0], velocity: [1.0], effort: [0.0]"}"
Try this if you are having any issues feel free to drop commet. I think this should work.
7 | No.7 Revision |
Hello @kak13,
I tried to run like this; ros2 topic pub --once /joint_states sensor_msgs/msg/JointState '{name, "front_right_wheel", position: [0.0], velocity: [1.0], effort: [0.0]}' --once
There are many mistakes in your command.
{name, "front_right_wheel" : Name is not properly defined.
--once : you are using this 2 times in your command.
string[] name = you have to pass in list formate, I think you are passing a single string.
ros2 topic pub --once /turtle1/cmd_vel geometry_msgs/msg/Twist "{name:
["<your-name>"], ['<your-name>'], position: [0.0], velocity: [1.0], effort: [0.0]"}"[0.0]}"
Try this if you are having any issues feel free to drop commet. I think this should work.
8 | No.8 Revision |
Hello @kak13,
I tried to run like this; ros2 topic pub --once /joint_states sensor_msgs/msg/JointState '{name, "front_right_wheel", position: [0.0], velocity: [1.0], effort: [0.0]}' --once
There are many mistakes in your command.
{name, "front_right_wheel" : Name is not properly defined.
--once : you are using this 2 times in your command.
string[] name = you have to pass in list formate, I think you are passing a single string.
ros2 topic pub --once
/turtle1/cmd_vel geometry_msgs/msg/Twist /joint_states sensor_msgs/msg/JointState "{name: ['<your-name>'], position: [0.0], velocity: [1.0], effort: [0.0]}"
And If you want to take multiple data in your Array then
ros2 topic pub --once /joint_states sensor_msgs/msg/JointState "{name: ['<your-name>', '<your-second-name>'], position: [0.0, 0.4], velocity: [1.0, 1.2], effort: [0.0, 0.4]}"
Try this if you are having any issues feel free to drop commet. I think this should work.