ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

kang's profile - activity

2015-11-06 12:40:51 -0500 received badge  Good Question (source)
2014-10-24 10:12:12 -0500 received badge  Notable Question (source)
2014-10-24 10:12:12 -0500 received badge  Popular Question (source)
2014-10-24 10:12:12 -0500 received badge  Famous Question (source)
2014-10-06 16:13:08 -0500 received badge  Nice Question (source)
2014-01-28 17:22:57 -0500 marked best answer Rosbag Record Buffer

Hi,

I am using rosbag for recording 2 kinects pointcloud (with RGB, without 2d-image) for duration around 10 minutes. I am recording in the same machine to which the kinects are attached.

When recording, usually it happens: rosbag record buffer exceeded. Dropping oldest queued message.

Then, I set the record buffer to like 40 Gigabyte. It helps, but still I found on one or two videos while recording, the buffer exceeded ocassionally.

I am running on Debian Squeeze machine, 4 processor @3.1 GHz. Memory: 7.8GiB.

My questions are: What does actually the buffer do? and is there some solutions for the recording problem?

Best, kang

2014-01-28 17:22:54 -0500 marked best answer rosbag recording pointclouds

Hi, I am using rosbag in rosdiamonback for recording pointcoulds sequences (video). So far, I feel it could not provide smooth running video, there is always lagging or even lost on some frames. While recording on images give nice smooth video from frame to frame, at least no obvious lost frames. I am wondering if it is the problem from the rosbag itself for pointclouds recording or I am missing something.

If someone has alternative solution for pointcloud sequences recording, pls let me know.

Best, Kang

2014-01-28 17:22:52 -0500 marked best answer publisher and rosinit

Hi,

I have a small coding problem while writing publisher. Usually I write publisher inside main function in my code:

pub.publish(data);

after initialize ros, create nodhandle, and define publisher. Similar like this tutorial).

Now, I trying to publish not in my main function. But this could not work since the ros initialization and nodeHandle etc are in main function. And if I write the nodehandle in my one of my subfunction, the nodehandle will also directly off after the subfunction being called.

I was thinking if the rosinit could be initialized before the main function, but still have found the way.

Let me now if someone have suggestion. Thx

Cheers, Kang

2014-01-28 17:22:51 -0500 marked best answer openni camera launch multikinect

Hi,

I am using multiple kinects. and I want to address the kinect fix by referring to the bus which the kinects are connected. I think i should do something like this to refer the bus (e.g. bus 2) in the openni_node launch file: <param name="device_id" value="002"/>

but it doesn't work. Help will be appreciated.

Cheers, Kang

2014-01-28 17:22:20 -0500 marked best answer subscriber pointcloud

Hi, I am using perception-pcl under ros. I want to get pointcloud from two kinects. Here, I subscribe to both topics. How can I get the data, which is the "cloud_s" and "cloud_t" into my main function and compute it there? I tried to put argument on callback function like cloud_cb1(cloud_s) in:

ros::Subscriber sub_source = nh1.subscribe("camera1/depth/points", 1,cloud_cb1);

but, it did not work. below is part of my code. Thanks in advanced.

...
    void cloud_cb1 (const sensor_msgs::PointCloud2ConstPtr& cloud_s)
    {
      if ((cloud_s->width * cloud_s->height) == 0)
        return; 
}
void cloud_cb2 (const sensor_msgs::PointCloud2ConstPtr& cloud_t)
{
      if ((cloud_t->width * cloud_t->height) == 0)
        return;
}


int main(int argc, char** argv)
{
ros::init (argc, argv, "reg_icp_ros");  //initialize ros  
ros::NodeHandle nh1;
ros::NodeHandle nh2;

while (ros::ok())
  {
//subscribe node
ros::Subscriber sub_source = nh1.subscribe("camera1/depth/points", 1,cloud_cb1);
ros::Subscriber sub_target = nh2.subscribe("camera2/depth/points", 1,cloud_cb2);

...

best,

2014-01-28 17:22:20 -0500 marked best answer Publishing PointCloud2

Hi,

I am currently using pcl under ros. i am trying to publish pointcloud2 which I have computed. I already read tutorial from here But somehow I still have not get this right yet.

Let's say I call my computed pointcloud as cloud: pcl::PointCloud<Point>::Ptr cloud_aligned (new pcl::PointCloud<Point>);

and here how I defined for publisher:

ros::NodeHandle nh3;
ros::Publisher pub = nh3.advertise<sensor_msgs::PointCloud2>("alignedcloud", 1);
ros::Rate loop_rate(10);

then here is how I try to call publish:

pub.publish(cloud_aligned);  
ros::spinOnce();
loop_rate.sleep();

Could someone give me some hints?

Best, kang

some errors:

/ros_diamondback/ros_comm/clients/cpp/roscpp_traits/include/ros/message_traits.h:121: error: 'const class pcl::PointCloud<pcl::PointXYZ>' has no member named '__getMD5Sum'
/ros_diamondback/ros_comm/clients/cpp/roscpp_traits/include/ros/message_traits.h: In static member function 'static const char* ros::message_traits::DataType<M>::value(const M&) [with M = pcl::PointCloud<pcl::PointXYZ>]':

/ros_diamondback/ros_comm/clients/cpp/roscpp_serialization/include/ros/serialization.h:142: error: 'const class pcl::PointCloud<pcl::PointXYZ>' has no member named 'serializationLength'
/ros_diamondback/ros_comm/clients/cpp/roscpp_serialization/include/ros/serialization.h: In static member function 'static void ros::serialization::Serializer<T>::write(Stream&, typename boost::call_traits<T>::param_type) [with Stream = ros::serialization::OStream, T = pcl::PointCloud<pcl::PointXYZ>]':
/ros_diamondback/ros_comm/clients/cpp/roscpp/include/ros/publisher.h:87:   instantiated from 'void ros::Publisher::publish(const boost::shared_ptr<X>&) const [with M = pcl::PointCloud<pcl::PointXYZ>]'
/ros_diamondback/perception_pcl/pcl/src/tools/reg_icp_ros.cpp:88:   instantiated from here
/ros_diamondback/ros_comm/clients/cpp/roscpp_serialization/include/ros/serialization.h:124: error: 'const class pcl::PointCloud<pcl::PointXYZ>' has no member named 'serialize'
2014-01-28 17:22:17 -0500 marked best answer rviz pointcloud2 multi-window

Hi,

Is it possible to have multi-window for pointcloud2 in rviz? For camera or image we can directly have additional window as we add it up. But for pointcloud2 it does not work like that.

Best, Kang

2014-01-28 17:22:05 -0500 marked best answer perception pcl

Hi,

Currently I am trying tutorial for PCL as described in http://www.pointclouds.org/documentat...

But, as in perception_pcl package in ros I could not find file named "FindPCL.cmake".

Perhaps, someone could give some enlightenment here. I am still a bit confused how to use pcl in ros.

Thanks in advanced.

Kang

2014-01-28 17:22:03 -0500 marked best answer openni_kinect on squeeze

Hi, I installed ROS on squeeze via easy_install and it was done successfully. Then I tried to openni_kinect as described in http://www.ros.org/wiki/openni_kinect . but as I performed rosmake openni_kinect --rosdep-install then I got errors as below. Pls share if someone has idea what is the problem and how to make this works.

Thanks in advanced.

//////////////////

[ rosmake ] Packages requested are:
['openni_kinect']
[ rosmake ] Logging to directory/home/wandis/.ros/rosmake/
rosmake_output-20110506-180554
[ rosmake ] Expanded args ['openni_kinect'] to:
['nite', 'openni', 'openni_tracker', 'openni_camera']
[ rosmake ] Generating Install Script using rosdep then executing.
This may take a minute, you will be prompted for permissions. . .
Failed to find rosdep nite-dev for package nite on OS:debian
version:squeeze
Failed to find rosdep openni-dev for package nite on OS:debian
version:squeeze
Failed to find rosdep ps-engine for package nite on OS:debian
version:squeeze
Failed to find rosdep openni-dev for package openni on OS:debian
version:squeeze
Failed to find rosdep openni-dev for package openni_tracker on
OS:debian version:squeeze
Failed to find rosdep ps-engine for package openni_tracker on
OS:debian version:squeeze
Failed to find rosdep nite-dev for package openni_tracker on OS:debian
version:squeeze
Failed to find rosdep openni-dev for package openni_camera on
OS:debian version:squeeze
Failed to find rosdep uuid for package openni_camera on OS:debian
version:squeeze
Failed to find rosdep libusb1.0 for package openni_camera on OS:debian
version:squeeze
Failed to find rosdep ps-engine for package openni_camera on OS:debian
version:squeeze
WARNING: Rosdeps [u'nite-dev', u'openni-dev', u'ps-engine', u'openni-
dev', u'openni-dev', u'ps-engine', u'nite-dev', u'openni-dev',
u'uuid', u'libusb1.0', u'ps-engine'] could not be resolved
rosdep executing this script:
{{{
set -o errexit
#No Packages to install
}}}

[ rosmake ] rosdep successfully installed all system
dependencies
[ rosmake ] Starting >>> tools/
rospack
[ rosmake ] Finished <<< tools/
rospack
[rosmake-0] Starting >>> nite
[ make ]
[rosmake-1] Starting >>> openni
[ make ]
[rosmake-2] Starting >>> rosbuild
[ make ]
[rosmake-2] Finished <<< rosbuild  No Makefile in package
rosbuild
[rosmake-1] Finished <<< openni [PASS] [ 2.33
seconds ]
[rosmake-0] Finished <<< nite [PASS] [ 2.35
seconds ]
[rosmake-3] Starting >>> cpp_common
[ make ]
[rosmake-1] Starting >>> roslang
[ make ]
[rosmake-1] Finished <<< roslang  No Makefile in package
roslang
[rosmake-2] Starting >>> roslib
[ make ]
[rosmake-1] Starting >>> xmlrpcpp
[ make ]
[rosmake-0] Starting >>> rosgraph_msgs
[ make ]
[rosmake-3] Finished <<< cpp_common [PASS] [ 3.43
seconds ]
[rosmake-3] Starting >>> roscpp_traits
[ make ]
[rosmake-1] Finished <<< xmlrpcpp [PASS] [ 3.40
seconds ]
[rosmake-1] Starting >>> rostime
[ make ]
[rosmake-0] Finished <<< rosgraph_msgs [PASS] [ 4.11
seconds ]
[rosmake-2] Finished <<< roslib [PASS] [ 4.25
seconds ]
[rosmake-0] Starting >>> eigen
[ make ]
[rosmake-2] Starting >>> std_msgs
[ make ]
[rosmake-0] Finished <<< eigen [PASS] [ 0.03
seconds ]
[rosmake-0] Starting >>> rosclean
[ make ]
[rosmake-3] Finished <<< roscpp_traits [PASS] [ 3.04
seconds ]
[rosmake-3] Starting >>> rosgraph
[ make ]
[rosmake-1] Finished <<< rostime [PASS] [ 4.17
seconds ]
[rosmake-1] Starting >>> roscpp_serialization
[ make ]
[rosmake-0] Finished <<< rosclean [PASS] [ 3.02
seconds ]
[rosmake-0] Starting >>> rosconsole
[ make ]
[rosmake-3] Finished <<< rosgraph [PASS] [ 2.65
seconds ]
[rosmake-3] Starting >>> rosmaster
[ make ]
[rosmake-1] Finished <<< roscpp_serialization [PASS] [ 2.92
seconds ]
[rosmake-1] Starting >>> rosunit
[ make ]
[rosmake-3] Finished <<< rosmaster [PASS] [ 2.66
seconds ]
[rosmake-3] Starting >>> angles
[ make ]
[rosmake-0] Finished <<< rosconsole [PASS] [ 4.49
seconds ]
[rosmake-0] Starting >>> rosnode
[ make ]
[rosmake-1] Finished <<< rosunit [PASS] [ 2 ...
(more)
2014-01-28 17:22:00 -0500 marked best answer Ros Offline Installation

Hi,

I am now working on Debian which I do not have root privilage access so I am not able to do sudo command. Is there a solution I can download the ROS packages and install it to directories that I can access?

note: I notice that the similar question has been asked, but the solution does not work for me.

Best, Kang

2013-05-20 21:54:27 -0500 marked best answer saving depth image into pcd

Hi,

I would like to save the depth images into pcd format files which I viewed in rviz through openni_kinect. Can someone gives some clues? Thanks

Best, Kang

2013-05-10 20:51:19 -0500 received badge  Taxonomist
2013-03-04 11:44:26 -0500 received badge  Popular Question (source)
2013-03-04 11:44:26 -0500 received badge  Notable Question (source)
2013-03-04 11:44:26 -0500 received badge  Famous Question (source)