fpasteau / raspicam_node Goto Github PK
View Code? Open in Web Editor NEWGroovy ROS node for camera module of Raspberry Pi
Groovy ROS node for camera module of Raspberry Pi
I see in the code that all the standard raspicam settings are supported, like vlip and hflip. However, how are these set from parameters or config files? I can't find anything in the code that actually exposes these to the user. There appears to be a stub for a whole command line interface in RaspiCLI.cpp, but there's no way to access it.
Hi,
would it be possible to get the raw uncompressed camera from your raspicam_node?
republishing as raw is taxing for the pi's cpu and moreover seems to be incompatible with ethzasl_ptam and rpg_svo :(
I wrote a roslaunch file that calls the raspicam node perfectly when typed into the terminal. However, when I call it using a script with the line
xterm -hold -e "roslaunch first package raspicam.launch" &
I get this error:
ERROR: cannot launch node of type [raspicam/raspicam_node]: raspicam
ROS path [0]=/opt/ros/groovy/share/ros
ROS path [1]=/home/pi/working space
ROS path [2]=/opt/ros/groovy/share
ROS path [3]=/opt/ros/groovy/stacks
I use another roslaunch file to call the image_transport node and it works fine in the script.
Any idea what's happening here?
Hi, the node_raw have a problem, at certain random time change the coding of bgra8 to rgba8, I tried to find the exact time, but this varies depending on CPU usage. What is the fault?. This does not occur in the compressed node.
Hello , I am trying to make this package using catkin , two packages are mandatory and NOT found , could you please tell me where I can find and install them ASAP Thank you
Packages : image_transport and camera_info_manager. apt-get <package_name> does not work. gives a package not found error
Hello, I followed all what you said how to make it work. My camera works with raspivid but when i try to call rosservice call /camera/start_capture this error occurs:
mmal: mmal_component_create_core:could not find component 'vc.ril.camera"
mmal:Failed to create camera component
do you have any idea please?
I'm not sure if this is a bug or not, but attempting to build on Indigo running on an x86_64 platform gives me this error:
myproject/src/overlay/src/raspicam/src/RaspiCamControl.cpp:32:33: fatal error: interface/vcos/vcos.h: No such file or directory
#include "interface/vcos/vcos.h"
^
compilation terminated.
[ 83%] Built target rpi_gpio_generate_messages_cpp
myproject/src/overlay/src/raspicam/src/RaspiCLI.cpp:46:33: fatal error: interface/vcos/vcos.h: No such file or directory
#include "interface/vcos/vcos.h"
^
compilation terminated.
[ 83%] Built target rpi_gpio_generate_messages
make[2]: *** [raspicam/CMakeFiles/raspicamcontrol.dir/src/RaspiCamControl.cpp.o] Error 1
make[1]: *** [raspicam/CMakeFiles/raspicamcontrol.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [raspicam/CMakeFiles/raspicli.dir/src/RaspiCLI.cpp.o] Error 1
make[1]: *** [raspicam/CMakeFiles/raspicli.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
I have all the required packages installed. Are the ARM/Raspbian packages the only ones that provide the vcos headers?
If I run the identical commands on the Pi, it builds fine.
It would be nice to be able to build on x86_64 and then push the binaries to the Pi just for ease of testing and faster performance. Should I be able to build this on a non-Pi platform?
Hello,
how can I calibrate my raspicam?
phoenix@phoenix ~/ros_catkin_ws/src/raspicam_node $ rostopic list
/camera/camera_info
/camera/image/compressed
/rosout
/rosout_agg
phoenix@phoenix ~/ros_catkin_ws/src/raspicam_node $ rosrun camera_calibration cameracalibrator.py --size 8x6 --square 0.108 image:=/camera/image/compressed camera:=/camera
('Waiting for service', '/camera/set_camera_info', '...')
Service not found
phoenix@phoenix ~/ros_catkin_ws/src/raspicam_node $ rosservice list
/Camera/get_loggers
/Camera/set_logger_level
/camera/start_capture
/camera/stop_capture
/rosout/get_loggers
/rosout/set_logger_level
/set_camera_info
the service cannot be found although it is there? did you manage to calibrate it with the camera_calibration package? can you give me a hint?
I followed the instructions to install the Raspicam node but when I ran: rosdep install --from-paths src --ignore-src --rosdistro=kinetic -y
but I got this error:
I'm using Raspbian stretch and the Kinetic ROS distro.
ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies: raspicam_node: No definition of [camera_info_manager] for OS [debian]
Tested on Ubuntu 14.04(arm) with raspberry pi 2 + ROS indigo, run very well! Excellent job!!.
keep trying, before I notice any problems.
Best regards.
rosrun raspicam raspicam_node _width=320 _height=240
[ INFO] [1437058890.546543875]: camera calibration URL: package://raspicam/calibrations/camera.yaml
[ INFO] [1437058890.624863250]: Unable to open camera calibration file [/home/phoenix/ros_catkin_ws/src/raspicam_node/calibrations/camera.yaml]
[ WARN] [1437058890.626588979]: Camera calibration file /home/phoenix/ros_catkin_ws/src/raspicam_node/calibrations/camera.yaml not found.
[ INFO] [1437058890.627953562]: Calibration file missing. Camera not calibrated
[ INFO] [1437058895.043508248]: Camera component done
[ INFO] [1437058895.050393613]: Encoder component done
[ INFO] [1437058895.065708405]: Starting video capture (640, 480, 80, 30)
[ INFO] [1437058895.066620436]: Video capture started
or am I using it wrong?
Hello, i'm new to github and am currently trying to get LSD_slam to work with my camera. I have Ros indigo installed on ubuntu 14.04.06 and i'm getting the following errors.
timtalk@timtalk-VirtualBox:~$ rosrun camera_calibration cameracalibrator.py --size 8x6 --square 0.108 image:=/image_raw camera:=/
('Waiting for service', '//set_camera_info', '...')
Service not found
when i look at the topic list I see the following
timtalk@timtalk-VirtualBox:~$ rostopic list
/camera_info
/image_raw
/image_raw/compressed
/image_raw/compressed/parameter_descriptions
/image_raw/compressed/parameter_updates
/image_raw/compressedDepth
/image_raw/compressedDepth/parameter_descriptions
/image_raw/compressedDepth/parameter_updates
/image_raw/theora
/image_raw/theora/parameter_descriptions
/image_raw/theora/parameter_updates
/rosout
/rosout_agg
and when I look at the services I see
timtalk@timtalk-VirtualBox:~$ rosservice list
/image_raw/compressed/set_parameters
/image_raw/compressedDepth/set_parameters
/image_raw/theora/set_parameters
/rosout/get_loggers
/rosout/set_logger_level
/set_camera_info
/uvc_camera/get_loggers
/uvc_camera/set_logger_level
I've been searching and trying things for hours now and have had no luck. Can someone please point me in the right direction?
If I launch the raw node with anything other than the default width and height, when I try and view the stream in image_view, I get the error:
[ERROR] [1458437288.519759119]: Unable to convert 'bgra8' image for display: 'Image is wrongly formed: height * step != size or 240 * 1360 != 337920'
For that example, I launched the node with size 320x240.
hello, I could make it run the camera calibration, nose if I'm calling well for this node.
I use : $ rosrun camera_calibration cameracalibrator.py --size 10x7 --square 0.108 image:=/camera/image camera:=
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.