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

jys's profile - activity

2021-02-18 10:49:16 -0500 marked best answer Unable to communicate to some of ROS services

I am trying to call ros services but I am unable to call some rosservices...

It works for /rosout/get_loggers but doesn't work with gazebo related services.. rosservice list shows all services.

(I intentionally added spaces between rosrpc and localhost because the system thinks I am posting some URL links and I don't have enough karma)

$ rosservice uri /rosout/get_loggers 
rosrpc: // localhost:59423
$ rosservice type /rosout/get_loggers 
roscpp/GetLoggers
$ rosservice uri /gazebo/unpause_physics
rosrpc : // localhost:41557
$ rosservice type /gazebo/unpause_physics
ERROR: Unable to communicate with service [/gazebo/unpause_physics], address [rosrpc : // localhost:41557]
$ rosservice call /gazebo/unpause_physics
ERROR: Unable to communicate with service [/gazebo/unpause_physics], address [rosrpc : // localhost:41557]

I read about network setup but still not able to figure out what is going on.. Please help.

$ echo $ROS_MASTER_URI 
http : // localhost:11311
$ echo $ROS_HOSTNAME 
localhost
2018-08-08 01:34:43 -0500 marked best answer roslaunch to launch python SimpleHTTPServer

Is there a way to add following to roslaunch?

roscd <package>
python -m SimpleHTTPServer 8000
2018-08-08 01:33:24 -0500 received badge  Famous Question (source)
2018-04-11 21:27:43 -0500 received badge  Taxonomist
2017-11-12 15:06:35 -0500 received badge  Notable Question (source)
2017-07-05 18:37:31 -0500 received badge  Favorite Question (source)
2017-05-23 11:08:08 -0500 received badge  Popular Question (source)
2017-05-22 15:31:14 -0500 asked a question roslaunch to launch python SimpleHTTPServer

roslaunch to launch python SimpleHTTPServer Is there a way to add following to roslaunch? roscd <package> python

2017-05-18 02:10:36 -0500 marked best answer Which dynamixel package shoud be used?

Does anyone have experience with both "dynamixel_motor" and ("dynamixel_sdk" or "dynamixel_workbench") If I am understanding correctly, it seems that "dynamixel_motor" has long been the package ROS community has been using. However, now there is an official package from ROBOTIS called "dynamixel_sdk" and "dynamixel_workbench"? But, it does not yet seem popular.

I am leaning toward the official package because it is official package but does it have all capabilities of "dynamixel_motor" package? Has anybody tried these new official packages? Any thoughts on which package I should start with for my motors (MX-12W)?

2017-05-18 01:16:00 -0500 received badge  Famous Question (source)
2017-05-17 19:53:39 -0500 received badge  Notable Question (source)
2017-05-17 18:18:32 -0500 commented answer Which dynamixel package shoud be used?

Thanks for your answer. Do you know if all these things listed here in dynamixel_controllers (dynamixel_motor) tutorials

2017-05-17 18:13:51 -0500 received badge  Popular Question (source)
2017-05-17 11:49:32 -0500 edited question Which dynamixel package shoud be used?

Which dynamixel package shoud be used? Does anyone have experience with both "dynamixel_motor" and ("dynamixel_sdk" or "

2017-05-16 18:23:50 -0500 edited question Which dynamixel package shoud be used?

Which dynamixel package shoud be used? Does anyone have experience with both "dynamixel_motor" and ("dynamixel_sdk" or "

2017-05-16 18:21:25 -0500 asked a question Which dynamixel package shoud be used?

Which dynamixel package shoud be used? Does anyone have experience with both "dynamixel_motor" and ("dynamixel_sdk" or "

2016-11-04 18:38:04 -0500 received badge  Famous Question (source)
2016-08-19 09:31:18 -0500 marked best answer tf rotation before translation?

I cannot find any documentation on convention used by tf.

$ rosrun tf tf_echo /map /odom
At time 1263248513.809
- Translation: [2.398, 6.783, 0.000]
- Rotation: in Quaternion [0.000, 0.000, -0.707, 0.707]
in RPY [0.000, -0.000, -1.570]
  1. For translation value and rotation quaternion value, is translation happening in original frame and then rotation happens? Or, does it rotate first and then the translation happens? What is the convention used by tf system?

  2. Which RPY convention is RPY using?

Thanks.

2016-07-19 13:37:50 -0500 received badge  Notable Question (source)
2016-06-11 09:35:07 -0500 marked best answer Using ROS with Kinect (Failed to set USB interface)

Trying to use ROS with Kinect.

http://www.ros.org/wiki/openni_launch/Tutorials/QuickStart

This tutorial says it is as easy as plug in Kinect to USB and launch

roslaunch openni_launch openni.launch

But I get

process[camera_base_link3-21]: started with pid [32556]
terminate called after throwing an instance of 'openni_wrapper::OpenNIException'
  what():  unsigned int openni_wrapper::OpenNIDriver::updateDeviceList() @ /tmp/buildd/ros-fuerte-openni-camera-1.8.6/debian/ros-fuerte-openni-camera/opt/ros/fuerte/stacks/openni_camera/src/openni_driver.cpp @ 125 : enumerating image nodes failed. Reason: One or more of the following nodes could not be enumerated:

Image: PrimeSense/SensorV2/5.1.0.41: Failed to set USB interface!

[camera_nodelet_manager-1] process has died [pid 31934, exit code -6, cmd /opt/ros/fuerte/stacks/nodelet_core/nodelet/bin/nodelet manager __name:=camera_nodelet_manager __log:=...

What am I missing or doing wrong?

lsusb shows

Bus 002 Device 019: ID 045e:02b0 Microsoft Corp. Xbox NUI Motor
Bus 002 Device 020: ID 045e:02ad Microsoft Corp. Xbox NUI Audio
Bus 002 Device 021: ID 045e:02ae Microsoft Corp. Xbox NUI Camera
2016-06-02 00:30:24 -0500 received badge  Enthusiast
2016-05-25 05:56:17 -0500 received badge  Popular Question (source)
2016-05-10 17:50:17 -0500 asked a question visual odometry (rpg_svo vs viso2)

Does anyone have an experience between these two visual odometry packages? (e.g. for a wide-angle camera attached to an end of robot arm) The paper also does not seem talk about it.

http://wiki.ros.org/viso2?distro=indigo

https://github.com/uzh-rpg/rpg_svo

2016-05-10 00:23:16 -0500 commented question uvc_camera mjpeg support

Have you found solution to this problem? I am also seeing this with ELP-USBFHD01M-L180.

2016-03-17 13:49:25 -0500 marked best answer ROS PCL crashing

I am just trying to run pcd_viewer but things crash. Both in Groovy and Fuerte. However, I just install libpcl, then run /usr/bin/pcd_viewer, things just work.

I would really want to just use version in ROS but it is crashing on these machines.

$ /opt/ros/fuerte/bin/pcd_viewer training/scissors_1_2_100.pcd
The viewer window provides interactive commands; for help, press 'h' or 'H' from within the window.
> Loading training/scissors_1_2_100.pcd [done, 303 ms : 2362 points]
Available dimensions: x y z rgb imX imY
Illegal instruction (core dumped)
$ /opt/ros/groovy/bin/pcd_viewer training/scissors_1_2_100.pcd
The viewer window provides interactive commands; for help, press 'h' or 'H' from within the window.
> Loading training/scissors_1_2_100.pcd [done, 320 ms : 2362 points]
Available dimensions: x y z rgb imX imY
Illegal instruction (core dumped)


(gdb) thread apply all bt

Thread 1 (Thread 0x7ffff7fa7840 (LWP 5259)):
#0  0x00007ffff74886a5 in pcl::visualization::PointCloudColorHandlerRandom<sensor_msgs::PointCloud2_<std::allocator<void> > >::getColor(vtkSmartPointer<vtkDataArray>&) const () from /opt/ros/fuerte/lib/libpcl_visualization.so.1.5
#1  0x00007ffff7495963 in pcl::visualization::PCLVisualizer::fromHandlersToScreen(boost::shared_ptr<pcl::visualization::PointCloudGeometryHandler<sensor_msgs::PointCloud2_<std::allocator<void> > > const> const&, boost::shared_ptr<pcl::visualization::PointCloudColorHandler<sensor_msgs::PointCloud2_<std::allocator<void> > > const> const&, std::string const&, int, 
Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&) ()

 from /opt/ros/fuerte/lib/libpcl_visualization.so.1.5
#2  0x000000000041382b in main ()

Here is my CPU info.

model name      : Intel(R) Core(TM)2 CPU          6400  @ 2.13GHz
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm dtherm tpr_shadow
2015-11-26 03:10:14 -0500 received badge  Famous Question (source)
2015-10-30 17:59:35 -0500 marked best answer laser_self_filter crashes when launching PR2 arm_navigation

It is basically a problem reported before by @ASchwa but never got resolved. Though it is a wiki question, I don't have enough Karma, so I am posting as new question.

I just want to run roslaunch pr2_3dnav right_arm_navigation.launch

laser_self_filter continues to crash and gets respawned on Ubuntu 12.04 LTS 64-bit with ROS Fuerte.

I know this launch file does work on many other machines that also runs 12.04 64bit with Fuerte. It is crucial for us to get this working please take a look.

As @Lorenz suggested, I attached gdb to laser_self_filter. Please take a look. Thanks!

(gdb) bt
#0  0x00007ffff6ae20e1 in pcl::VoxelGrid<pcl::PointXYZ>::applyFilter(pcl::PointCloud<pcl::PointXYZ>&) () from /opt/ros/fuerte/lib/libpcl_filters.so.1.5
#1  0x0000000000434527 in filter (output=..., this=0x7fffffffdb10)
    at /opt/ros/fuerte/include/pcl-1.5/pcl/filters/filter.h:117
#2  SelfFilter::cloudCallback (this=0x7fffffffd600, cloud2=...)
    at /tmp/buildd/ros-fuerte-arm-navigation-1.1.11/debian/ros-fuerte-arm-navigation/opt/ros/fuerte/stacks/arm_navigation/robot_self_filter/src/self_filter.cpp:105
#3  0x0000000000424b3a in operator() (a0=..., this=<optimized out>)
    at /usr/include/boost/function/function_template.hpp:1013
#4  boost::detail::function::void_function_obj_invoker1<boost::function<void (boost::shared_ptr<sensor_msgs::PointCloud2_<std::allocator<void> > const> const&)>, void, boost::shared_ptr<sensor_msgs::PointCloud2_<std::allocator<void> > const> >::invoke(boost::detail::function::function_buffer&, boost::shared_ptr<sensor_msgs::PointCloud2_<std::allocator<void> > const>) (function_obj_ptr=..., a0=...)
    at /usr/include/boost/function/function_template.hpp:153
#5  0x000000000043821c in operator() (
    a0=<error reading variable: access outside bounds of object referenced via synthetic pointer>, this=0x698238) at /usr/include/boost/function/function_template.hpp:1013
#6  message_filters::CallbackHelper1T<boost::shared_ptr<sensor_msgs::PointCloud2_<std::allocator<void> > const> const&, sensor_msgs::PointCloud2_<std::allocator<void> > >::call (this=0x698230, event=..., nonconst_force_copy=<optimized out>)
    at /opt/ros/fuerte/include/message_filters/signal1.h:76
#7  0x000000000042a367 in call (event=..., this=<optimized out>)
    at /opt/ros/fuerte/include/message_filters/signal1.h:119
#8  message_filters::SimpleFilter<sensor_msgs::PointCloud2_<std::allocator<void> > >::signalMessage (this=<optimized out>, event=...)
    at /opt/ros/fuerte/include/message_filters/simple_filter.h:135
#9  0x000000000043b365 in tf::MessageFilter<sensor_msgs::PointCloud2_<std::allocator<void> > >::testMessage (this=0x7a2970, evt=...)
    at /opt/ros/fuerte/stacks/geometry/tf/include/tf/message_filter.h:413
#10 0x000000000043bf91 in tf::MessageFilter<sensor_msgs::PointCloud2_<std::allocator<void> > >::add (this=0x7a2970, evt=...)
    at /opt/ros/fuerte/stacks/geometry/tf/include/tf/message_filter.h:255
#11 0x0000000000438408 in operator() (a0=..., this=0x7c05f8)
    at /usr/include/boost/function/function_template.hpp:1013
#12 message_filters::CallbackHelper1T<ros::MessageEvent<sensor_msgs::PointCloud2_<std::allocator<void> > const> const&, sensor_msgs::PointCloud2_<std::allocator<void> > >::call (this=0x7c05f0, event=..., nonconst_force_copy=<optimized out>)
    at /opt/ros/fuerte/include/message_filters/signal1.h:76
#13 0x000000000042a367 in call (event=..., this=<optimized out>)
    at /opt/ros/fuerte/include/message_filters/signal1.h:119
#14 message_filters::SimpleFilter<sensor_msgs::PointCloud2_<std::allocator<void> > >::signalMessage (this=<optimized out>, event=...)
    at /opt/ros/fuerte/include/message_filters/simple_filter.h:135
#15 0x000000000043853b in operator() (a0=..., this=0x7e4458)
    at /usr/include/boost/function/function_template.hpp:1013
#16 ros::SubscriptionCallbackHelperT<ros::MessageEvent<sensor_msgs::PointCloud2_<std::allocator<void> > const> const&, void>::call ...
(more)
2015-10-27 01:04:18 -0500 received badge  Notable Question (source)