zlingkang / hd_servo

ROS package for Arduino servo sequence control

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

joint_states2command

raess1 opened this issue · comments

commented

HI,
Got it up and running. Can you please give me some help on how you publish the joint_states to a rviz simulation? I tried a bit but only got:

[ERROR] [1590274461.162340]: bad callback: <bound method hdServoNode.jointStatesCallback of <__main__.hdServoNode instance at 0x7f984bf230>> Traceback (most recent call last): File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/topics.py", line 750, in _invoke_callback cb(msg) File "/home/rf/test_ws/src/hd_servo/scripts/joint_states2command_node.py", line 70, in jointStatesCallback m_pos = (msg.position[pos_ind]/3.14*180.0*self.dir_list[i]+ self.bias_list[i]+82)*11.8 + 448 IndexError: tuple index out of range

Thanks! :)