Closed pratipo closed 3 years ago
oh! The header class was just recently implemented and it's not been released (it would work if you run from source). But we're ready to release, so, give me a few minutes and we'll push a new release out.
@pratipo should be fixed now. Please update to the latest release: roslibpy 1.2.0
to get these feature.
just to confirm it's working. thanks!
I cannot generate a properly built message, apprently
Steps to reproduce the behavior: I have a simulated robot arm in gazebo
rostopic pub /arm_controller/command trajectory_msgs/JointTrajectory '{joint_names: ["joint_1","joint_2","jnt_3","joint_4", "joint_5", "joint_6"], points: [{positions:[0.1,-0.5,0.5,0.75,0.0,0.0], time_from_start: [1.0,0.0]}]}' -1
works as expectedi got some code from
/tests/test_topic.py
`msg = dict(#header=roslibpy.Header(seq=i, stamp=Time.now(), frame_id='base'), joint_names=["joint_1","joint_2","joint_3","joint_4", "joint_5", "joint_6"], points=[dict( positions=[1.0,0.0,2.0,0.0,1.0,1.0],
velocities=[1,1,1,1,1,1],
i had to remove the header, because i get
module 'roslibpy' has no attribute 'Header'
roslibpy.core.Header
doesnt work eitherrostopic echo /arm_controller/command
displays the messages, but gazebo is not moving the armany ideas? thanks a lot in advance
linux mint 20
3.7.4
pip3