Closed enrabre closed 7 years ago
@enrabre
The ROS_MASTER_URI and ROS_IP you set are ok.
If your goal is to create the point cloud from the data you recorded you have two choices:
rosbag record -b0 <kinect_name>/rgb_lowres/image <kinect_name>/depth_lowres/image <kinect_name>/rgb_lowres/camera_info
In this way, after you will play the bag, you can reconstruct the point cloud using the nodelet inside the package depth_image_proc (the lines you reported represent the parameters of that nodelet). In particular, this nodelet uses the topic rgb/image_rect_color
to read the color information, the topic rgb/camera_info
to read the calibration data of your camera and so on (depth_registered/points
is the output topic). The remap tag permits you to redirect a different topic to the topic name the nodelet is expecting, making it work with it. Have a look to the documentation for further information. In your case you would probably write something like:
<remap from="rgb/camera_info" to="/$(arg sensor_name)/rgb_lowres/camera_info" />
<remap from="rgb/image_rect_color" to="/$(arg sensor_name)/rgb_lowres/image" />
<remap from="depth_registered/image_rect" to="/$(arg sensor_name)/depth_lowres/image" />
<remap from="depth_registered/points" to="/$(arg sensor_name)/depth/points" />
Please note that in order to reduce the final size of your bag it is also possible to record the topic .../compressed
. However, in this case is up to you to decompress the data once the bag is played (have a look to the republish node and at this answer).
Personally, I did not try to record data for such a long time (10 hours), I am expecting that your final bag file will be really big.
Hello,
I use Kinects v2 and I want to record a given Kinect sensor. For testing, I changed the ROS_MASTER_URI to http://localhost:11311/ and ROS_IP to my ipv4 address, so I don't need to be plugged in my network and the command
roslaunch opt_calibration sensor_<kinect_name>.launch
does not complain. I tried the instructions I found under the "Tips and tricks" section:roslaunch opt_calibration sensor_<kinect_name>.launch
rosbag record -b0 /tf <kinect_name>/depth_registered/image_raw <kinect_name>/depth_registered/camera_info <kinect_name>/rgb/image_raw <kinect_name>/rgb/camera_info <kinect_name>/depth_registered/disparity
It creates this type of bag file:
I cannot recreate pointCloud with this bag (
roscore
, thenrosparam set /use_sim_time true
, then launch Rviz, thenrosbag play --clock tuto.bag
, with the bag file named tuto, fixed frame set to/<kinect_name>_link
)None of the given topics are published. Here is the list of topic published (using the command
rostopic list -v
when one sensor is running):I am able to visualized pointCloud when I record
/Kinect_Sabrine/depth_ir/points
topic, but the bag file is really big.In the kinect2_bridge_ir.launch file, I found this:
I am quite new in ROS, so I don't know what it means.
Where can I found the depth's disparity topic ?
More generally, I would like to record kinect v2 information (color and depth), which topics should I take ?
Also can I record a given Kinect v2 for a long time ? (10 hours)