https://github.com/otl/rosjps
rosbridge for jps
https://github.com/otl/rosjps
Last synced: 3 months ago
JSON representation
rosbridge for jps
- Host: GitHub
- URL: https://github.com/otl/rosjps
- Owner: OTL
- License: apache-2.0
- Created: 2016-06-25T03:44:22.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-25T04:57:39.000Z (about 10 years ago)
- Last Synced: 2025-01-20T01:46:39.457Z (over 1 year ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
rosjps
=============
Bridge Between ROS(http://wiki.ros.org) and jps(https://github.com/OTL/jps)
how to use
------------
Below example converts one ROS topic to jps topic, and converts one jps topic to ROS.
- /cv_camera/image_raw (ROS) -> jps
- /cmd_vel (jps) -> ROS
```python
from rosjps import jps_bridge
import rospy
from geometry_msgs.msg import Twist
from sensor_msgs.msg import Image
rospy.init_node('jps_bridge')
ros_to_jps = jps_bridge.RosToJpsBridge('/cv_camera/image_raw', Image)
jps_to_ros = jps_bridge.JpsToRosBridge('/cmd_vel', Twist)
rospy.spin()
```