Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

advertise<trajectory_msgs::JointTrajectory> doesn't work #18

Open
oridong opened this issue Jan 31, 2021 · 0 comments
Open

advertise<trajectory_msgs::JointTrajectory> doesn't work #18

oridong opened this issue Jan 31, 2021 · 0 comments

Comments

@oridong
Copy link

oridong commented Jan 31, 2021

VMware ubuntu20
the examples given works well,but my own

"auto pub =n.advertise<trajectory_msgs::JointTrajectory>("trajV_reflexx", 1000); "
doesn't work.

    while ( ros::ok())
    {
             ....
            trajectory_msgs::JointTrajectory joint_state; 
        trajectory_msgs::JointTrajectoryPoint joint_state_pt; 
        joint_state_pt.velocities.push_back((*OP->NewVelocityVector)[0]);
        joint_state.points.push_back(joint_state_pt) ;
                    pub.publish(joint_state);
}

rqt throw err: Traceback (most recent call last): File "/opt/ros/noetic/lib/python3/dist-packages/rospy/topics.py", line 748, in _invoke_callback cb(msg, cb_args) File "/home/d/planning/ws_traj/src/rqt_joint_trajectory_plot/src/rqt_joint_trajectory_plot/main_widget.py", line 109, in callback msg = JointTrajectory().deserialize(anymsg._buff) AttributeError: 'JointTrajectory' object has no attribute '_buff'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant