Skip to main content

Set an environment for easy work with ROS in python without setting things up

Project description

pyrosenv

Set an environment for easy work with ROS in python without setting things up

Installation

pip install pyrosenv

Usage

For easy working with ROS in Python 3 in your IDE (Pycharm, VSCode, etc.) Do one or more of the following imports. Actually after import pyrosenv you can import anything that you would import in ROS environemnt.

# set things up and then import
import pyrosenv
import rospy
# ...

#import ros libraries
from pyrosenv import rospy
from pyrosenv import rosbag
from pyrosenv import roslaunch
from pyrosenv import rosgraph
from pyrosenv import roslib
from pyrosenv import genpy
from pyrosenv import cv_bridge

# import std msgs
from pyrosenv.std_msgs.msg import Int16
from pyrosenv.std_msgs.msg import Bool
# ...

# import sensor msgs
from pyrosenv.sensor_msgs.msg import PointCloud2
msg = PointCloud2()
from pyrosenv.sensor_msgs import point_cloud2
point_cloud2.read_points(msg)
from pyrosenv.cv_bridge import CvBridge, CvBridgeError
# ...

Then you can just use rospy, rosbag, std_msgs, sensor_msgs, etc. as you would in ROS environment.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrosenv-0.0.4.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

pyrosenv-0.0.4-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page