raspicam_node | ROS node for mipi camera module of Raspberry Pi | Robotics library
kandi X-RAY | raspicam_node Summary
kandi X-RAY | raspicam_node Summary
ROS node for mipi camera module of Raspberry Pi
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of raspicam_node
raspicam_node Key Features
raspicam_node Examples and Code Snippets
Community Discussions
Trending Discussions on raspicam_node
QUESTION
if __name__ == '__main__':
rospy.init_node('gray')
settings = termios.tcgetattr(sys.stdin)
pub = rospy.Publisher('cmd_vel', Twist, queue_size=1)
x = 0
th = 0
node = Gray()
node.main()
...ANSWER
Answered 2019-Nov-27 at 10:32Also, callback function runs every 0.1 seconds.
I believe this is incorrect. I see that you have made a self.r
object but never used it anywhere in the code to achieve an update rate of 10hz. If you want to run the main loop at every 0.1 seconds, you will have to call your commands within the following loop (see rospy-rates) before calling rospy.spin():
QUESTION
I am new to ROS. I am playing with integrating OpenCV and ROS. The code I am using is inspired from the ROS tutorial on converting ROS messages to CV::mat and back.
I am subscribing to the topic /raspicam_node/image/compressed
published by the raspicam node. I have no problem getting the topic, converting it to CV:mat, and modifying it with OpenCV. Line 32 opens a window and shows me the modified CV:mat image.
My issue comes at Line 36. I can see the topic using rostopic list
but when I echo
it nothing comes up. Same if I use rqt_image_view
.
Any thoughts on what I am missing? Thank you!
...ANSWER
Answered 2018-Aug-11 at 10:29If you check rostopic echo /modified_image
you can see that your topic is successfully published.
rqt_image_view
will display it if you call your published topic modified_image/compressed
.
From the compressed_image_transport wiki:
publish it on a topic of the form image_raw/compressed. Then any ROS node using image_transport can subscribe to image_raw with transport compressed, just as if image_transport were used on the publisher side
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install raspicam_node
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page