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

FedeBO's profile - activity

2021-06-01 06:17:49 -0500 received badge  Famous Question (source)
2021-03-22 16:47:05 -0500 answered a question Joy_node don't publish

I dont know which is your problem but for my experience i always had some problems with rpi4 with ubuntu and ROS. Maybe

2021-03-22 16:47:05 -0500 received badge  Rapid Responder (source)
2021-03-22 16:38:17 -0500 marked best answer how publish joint velocity command?

ROS MELODIC, GAZEBO 9 Hi, i'm working to set up a quadcopter simulation within gazebo. I have created the model and added 4 transmission element ( one for each motor ) and to control them i use the ros_control plugins. Thus, i have created a file.yaml in which i specify my controllers:

joint_motor_controller:
    type: velocity_controllers/JointGroupVelocityController
    joints: 
        - joint_front_right_prop
        - joint_front_left_prop
        - joint_back_left_prop
        - joint_back_right_prop
    gains:
        joint_front_right_prop: {p: 10000, i: 1, d: 1000}
        joint_front_left_prop: {p: 10000, i: 1, d: 1000}
        joint_back_left_prop: {p: 10000, i: 1, d: 1000}
        joint_back_right_prop: {p: 10000, i: 1, d: 1000}

the problem arise when i try to publish from a ros node the velocity. the publisher objects is :

ros::Publisher pub = n.advertise<std_msgs::Float64MultiArray("/drone/joint_motor_controller/command",4);

but when i run the node i get the node i get the following error in gazebo:

ERROR: dimension of command ( #) does not match number of joint (4).

any help??? thanks in advance.

2021-03-22 16:38:17 -0500 received badge  Scholar (source)
2021-03-22 16:38:12 -0500 commented answer how publish joint velocity command?

Thanks for your answer, i have already fix it on my own. I was publishing a float64array without specifing the dimension

2021-03-22 06:20:06 -0500 received badge  Notable Question (source)
2021-03-20 02:05:28 -0500 received badge  Popular Question (source)
2021-03-19 10:57:35 -0500 asked a question how publish joint velocity command?

how publish joint velocity command? ROS MELODIC, GAZEBO 9 Hi, i'm working to set up a quadcopter simulation within gazeb