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

dvrk_xr_ros_bridge.py #2

Open
fanke1213812138 opened this issue Sep 3, 2021 · 4 comments
Open

dvrk_xr_ros_bridge.py #2

fanke1213812138 opened this issue Sep 3, 2021 · 4 comments

Comments

@fanke1213812138
Copy link

When I ran the dvrk_xr_ros_bridge.py, I got this error.
Thank you very much!
[ERROR] [1630682447.687229]: bad callback: <bound method Subscriber.callback of <message_filters.Subscriber object at 0x7fe0027ad990>>
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 "/opt/ros/melodic/lib/python2.7/dist-packages/message_filters/init.py", line 76, in callback
self.signalMessage(msg)
File "/opt/ros/melodic/lib/python2.7/dist-packages/message_filters/init.py", line 58, in signalMessage
cb(*(msg + args))
File "/opt/ros/melodic/lib/python2.7/dist-packages/message_filters/init.py", line 302, in add
self.signalMessage(msgs)
File "/opt/ros/melodic/lib/python2.7/dist-packages/message_filters/init.py", line 58, in signalMessage
cb(
(msg + args))
File "./dvrk_xr_ros_bridge.py", line 126, in callback
jaw_string_msg = extract_jaw_data(jaw_raw)
File "./dvrk_xr_ros_bridge.py", line 92, in extract_jaw_data
name_json = """ + name_data[0][1] + """
File "/usr/lib/python2.7/dist-packages/pyparsing.py", line 390, in getitem
return self.__toklist[i]
IndexError: list index out of range

@adeguet1
Copy link
Contributor

adeguet1 commented Sep 3, 2021 via email

@fanke1213812138
Copy link
Author

Thank you very much for your reply.

The version is 1.7. Maybe it's a problem. The ROS node is running. May I ask if the message of /dvrk/PSM1/state_joint_current topic can be directly used in simulations like Uniy 3D or Gazebo? Do I need any conversion?

@adeguet1
Copy link
Contributor

adeguet1 commented Sep 3, 2021 via email

@fanke1213812138
Copy link
Author

fanke1213812138 commented Sep 4, 2021

Yes, the topic is publishing useful Jointstate information with 6 values of position etc. So can I use that in other simulations directly? But all the joints move in a wrong way. I used ROS-SHARP by siemens, with a joint_state_subscriber and jont_state_writers. Or could you give me a hint to simulate dVRK in some platforms? Anything would be appreciated. Than you very much for your help!
Screenshot from 2021-09-03 17-30-06

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

2 participants