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

Yantian_Zha's profile - activity

2022-03-07 07:01:53 -0500 received badge  Teacher (source)
2021-10-17 14:56:06 -0500 received badge  Famous Question (source)
2021-10-17 14:56:06 -0500 received badge  Notable Question (source)
2021-03-10 05:27:26 -0500 marked best answer Questions of .urdf.xacro file

I have 3 questions: First, what is the .urdf.xacro file? Second, how convert .urdf.xacro to .urdf, which can be visualized in Rviz? Third, whether there is other ways to visualize .urdf.xacro file? Thanks!

2020-04-08 06:18:51 -0500 marked best answer actionlib client question

Hi all, I want to use actionlib to send gripping control cmd to gripper_controller(arbotix package), but after compiling I ran my node, and get strange info: "terminate called after throwing an instance of 'ros::InvalidNameException' what(): Using ~ names with NodeHandle methods is not allowed. If you want to use private names with the NodeHandle interface, construct a NodeHandle using a private name as its namespace. e.g. ros::NodeHandle nh("~"); nh.getParam("my_private_name"); (name = [~gripper_action]) Aborted (core dumped)"

I cannot change my code as the note's "nh.getParam("my_private_name")" because I need sentence like "GripperMoveClient ac("~gripper_action",true);" to define my client.

Pls help me, thanks! Below is my actionlib client code.

#include ros/ros.h>  //in order to show for you I //deliberately lose "<"

#include actionlib/client/simple_action_client.h>

#include control_msgs/GripperCommandAction.h>

typedef actionlib::SimpleActionClient<control_msgs::GripperCommandAction> GripperMoveClient;

int main(int argc, char** argv){

ros::init(argc, argv, "grasping_points_node");

GripperMoveClient ac("~gripper_action",true);

 while(!ac.waitForServer(ros::Duration(5.0))){

  ROS_INFO("Waiting...");}

  control_msgs::GripperCommandGoal goal;

  goal.command.position=0.01;

  ac.sendGoal(goal);

}
2020-02-06 02:53:18 -0500 received badge  Popular Question (source)
2020-02-05 13:21:08 -0500 asked a question How to do Kinesthetic teaching on YuMi?

How to do Kinesthetic teaching on YuMi? Hello, I am writing to ask how to do Kinesthetic teaching on a YuMi robot (basi

2020-02-05 13:18:04 -0500 asked a question How to do Kinesthetic teaching on ABB YuMi?

How to do Kinesthetic teaching on ABB YuMi? Hello, I am writing to ask how to do Kinesthetic teaching on a YuMi robot (b

2019-06-16 13:17:31 -0500 received badge  Notable Question (source)
2019-01-29 17:29:47 -0500 received badge  Famous Question (source)
2019-01-07 20:07:03 -0500 received badge  Famous Question (source)
2018-12-19 12:16:20 -0500 received badge  Popular Question (source)
2018-10-11 16:21:55 -0500 marked best answer Requiring deep understanding of robot_state_publisher and TF

Hi all,

I have turtlebot2, groovy, turtlebot arm. In reading the tutorial Using urdf with robot_state_publisher, I'm confused in its launch file.

Why there are two "state_publishers" ?

one is "robot_state_publisher", and the other is "state_publisher")

By saying "need a method for specifying what state the robot is in" the tutorial points out the function of "state_publisher",

But in checking robot_state_publisher package we can see the function of robot_state_publisher is "allows you to publish the state of a robot to tf", which seems similar to the function of "state_publisher".

My goal is to broadcaster TF info, so my turtlebot arm can do grasping based on it(which have tf listening function). I have a URDF of turtlebot with arm.

Thanks for your help!

2018-07-30 16:44:55 -0500 marked best answer problems after running simple_arm_actions's node

Groovy, Turtlebot2, Phantomx Pincher arm rosrun simple_arm_actions reset_arm_server.py:

Traceback (most recent call last): File "/home/turtlebot/exp1_ws/src/simple_arms/simple_arm_actions/bin/reset_arm_server.py", line 74, in <module> ResetArmServer() File "/home/turtlebot/exp1_ws/src/simple_arms/simple_arm_actions/bin/reset_arm_server.py", line 44, in __init__ self.joints = rospy.get_param("/simple_arms/joints") File "/opt/ros/groovy/lib/python2.7/dist-packages/rospy/client.py", line 452, in get_param return _param_server[param_name] #MasterProxy does all the magic for us File "/opt/ros/groovy/lib/python2.7/dist-packages/rospy/msproxy.py", line 117, in __getitem__ raise KeyError(key) KeyError: '/simple_arms/joints'

Can anyone give me some ideas? Thanks!

2018-05-17 18:18:26 -0500 received badge  Notable Question (source)
2018-05-17 18:18:26 -0500 received badge  Popular Question (source)
2017-07-13 14:39:33 -0500 marked best answer ros getparam() question

Hi all,

In reading the tutorial "http://wiki.ros.org/roscpp/Overview/Parameter%20Server", I'm confused in understanding "nh.getParam("/global_name", global_name)". Should I interpret it as "get "/global_name" from the parameter server, and put it in "global_name""? And the "/" means what?

Thanks!

2017-06-01 12:47:59 -0500 received badge  Notable Question (source)
2017-06-01 12:47:59 -0500 received badge  Popular Question (source)
2017-03-13 00:59:09 -0500 received badge  Notable Question (source)
2016-12-30 15:53:28 -0500 commented answer Writing a Python node that publishes AND subscribes to topics of different message frequency

Do you need to add rospy.Spin() below the subscriber line?

2016-10-10 05:38:32 -0500 received badge  Famous Question (source)
2016-10-07 03:34:03 -0500 received badge  Famous Question (source)
2016-09-12 10:27:32 -0500 received badge  Popular Question (source)
2016-09-10 15:31:28 -0500 asked a question Rviz freezes?

Hi all,

After running "rosrun rviz rviz", the rviz window shown up and then freezes? If you have met this before and know how to solve it, please let me know. The screenshot. Thanks!

I have already tried to reinstall the Rviz.

2016-07-11 09:32:21 -0500 received badge  Popular Question (source)
2016-07-11 09:32:21 -0500 received badge  Notable Question (source)
2016-06-03 19:12:17 -0500 received badge  Famous Question (source)
2016-06-01 21:50:03 -0500 received badge  Famous Question (source)
2016-03-30 15:16:54 -0500 received badge  Famous Question (source)
2016-03-20 01:33:27 -0500 asked a question ros indigo mac install missing pcl_io lib

Hi all,

I'm trying to install ROS indigo at my mac (El Capitan). I have successfully run "rosdep install --from-paths src --ignore-src --rosdistro indigo -y --skip-keys gazebo", but met a problem when running "./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release", because of missing pcl_io library"

Here is the error: ld: library not found for -lpcl_io clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: * [/Users/yantian/ros_catkin_ws/devel_isolated/pcl_ros/lib/pcl_ros/convert_pointcloud_to_image] Error 1

make[1]: * [CMakeFiles/convert_pointcloud_to_image.dir/all] Error 2 make: * [all] Error 2 <== Failed to process package 'pcl_ros': Command '['/Users/yantian/ros_catkin_ws/install_isolated/env.sh', 'make', '-j8', '-l8']' returned non-zero exit status 2

Reproduce this error by running: ==> cd /Users/yantian/ros_catkin_ws/build_isolated/pcl_ros && /Users/yantian/ros_catkin_ws/install_isolated/env.sh make -j8 -l8

Command failed, exiting.

Thanks in advance!

2016-03-19 23:45:13 -0500 commented question On the step 2.1.2 "rosdep install --from-paths src --ignore-src --rosdistro indigo -y" the ROS-full installation fails with details below. Can anyone help?

I'm facing the same problem.

2016-01-12 10:35:12 -0500 asked a question understanding node and nodehandle mechanism in ork_ros

Hi all,

Here is the link to my question: https://github.com/wg-perception/line...

Thanks in advance!

2016-01-03 23:40:14 -0500 received badge  Student (source)
2016-01-03 00:59:23 -0500 commented question ImportError:no module named hello_ecto

Have you solved it? I met the same problem. Thanks!

2015-12-31 19:23:26 -0500 asked a question Object_recognition not publishing topics

Hi all,

I'm using ROS indigo, Kinect with libfreenect. I met problems in using ORK to do object recognition (especially with linemod). I think this package is now ok for Indigo, because of the "export DISTRO" in installation guide, ROS part.

I can train the coke model and run the detection node in the linemod tutorial above, but neither can I see the output topic listed in the tutorial (recognition topic) in RViZ, nor can I find the topic with rostopic list.

Here are topic list. Also, I checked the input topic, and found they have the right values. So I guess there's a bug in using this package in indigo? But the related packages are with very new update dates!

Thanks very much!

rostopic list:

/camera/debayer/parameter_descriptions /camera/debayer/parameter_updates /camera/depth/camera_info /camera/depth/disparity /camera/depth/image /camera/depth/image/compressed /camera/depth/image/compressed/parameter_descriptions /camera/depth/image/compressed/parameter_updates /camera/depth/image/compressedDepth /camera/depth/image/compressedDepth/parameter_descriptions /camera/depth/image/compressedDepth/parameter_updates /camera/depth/image/theora /camera/depth/image/theora/parameter_descriptions /camera/depth/image/theora/parameter_updates /camera/depth/image_raw /camera/depth/image_raw/compressed /camera/depth/image_raw/compressed/parameter_descriptions /camera/depth/image_raw/compressed/parameter_updates /camera/depth/image_raw/compressedDepth /camera/depth/image_raw/compressedDepth/parameter_descriptions /camera/depth/image_raw/compressedDepth/parameter_updates /camera/depth/image_raw/theora /camera/depth/image_raw/theora/parameter_descriptions /camera/depth/image_raw/theora/parameter_updates /camera/depth/image_rect /camera/depth/image_rect/compressed /camera/depth/image_rect/compressed/parameter_descriptions /camera/depth/image_rect/compressed/parameter_updates /camera/depth/image_rect/compressedDepth /camera/depth/image_rect/compressedDepth/parameter_descriptions /camera/depth/image_rect/compressedDepth/parameter_updates /camera/depth/image_rect/theora /camera/depth/image_rect/theora/parameter_descriptions /camera/depth/image_rect/theora/parameter_updates /camera/depth/image_rect_raw /camera/depth/image_rect_raw/compressed /camera/depth/image_rect_raw/compressed/parameter_descriptions /camera/depth/image_rect_raw/compressed/parameter_updates /camera/depth/image_rect_raw/compressedDepth /camera/depth/image_rect_raw/compressedDepth/parameter_descriptions /camera/depth/image_rect_raw/compressedDepth/parameter_updates /camera/depth/image_rect_raw/theora /camera/depth/image_rect_raw/theora/parameter_descriptions /camera/depth/image_rect_raw/theora/parameter_updates /camera/depth/points /camera/depth_rectify_depth/parameter_descriptions /camera/depth_rectify_depth/parameter_updates /camera/depth_registered/camera_info /camera/depth_registered/disparity /camera/depth_registered/hw_registered/image_rect /camera/depth_registered/hw_registered/image_rect/compressed /camera/depth_registered/hw_registered/image_rect/compressed/parameter_descriptions /camera/depth_registered/hw_registered/image_rect/compressed/parameter_updates /camera/depth_registered/hw_registered/image_rect/compressedDepth /camera/depth_registered/hw_registered/image_rect/compressedDepth/parameter_descriptions /camera/depth_registered/hw_registered/image_rect/compressedDepth/parameter_updates /camera/depth_registered/hw_registered/image_rect/theora /camera/depth_registered/hw_registered/image_rect/theora/parameter_descriptions /camera/depth_registered/hw_registered/image_rect/theora/parameter_updates /camera/depth_registered/hw_registered/image_rect_raw /camera/depth_registered/hw_registered/image_rect_raw/compressed /camera/depth_registered/hw_registered/image_rect_raw/compressed/parameter_descriptions /camera/depth_registered/hw_registered/image_rect_raw/compressed/parameter_updates /camera/depth_registered/hw_registered/image_rect_raw/compressedDepth /camera/depth_registered/hw_registered/image_rect_raw/compressedDepth/parameter_descriptions /camera/depth_registered/hw_registered/image_rect_raw/compressedDepth/parameter_updates /camera/depth_registered/hw_registered/image_rect_raw/theora /camera/depth_registered/hw_registered/image_rect_raw/theora/parameter_descriptions /camera/depth_registered/hw_registered/image_rect_raw/theora/parameter_updates /camera/depth_registered/image /camera/depth_registered/image/compressed /camera/depth_registered/image/compressed/parameter_descriptions /camera/depth_registered/image/compressed/parameter_updates /camera/depth_registered/image/compressedDepth /camera/depth_registered/image/compressedDepth/parameter_descriptions /camera/depth_registered/image/compressedDepth/parameter_updates /camera/depth_registered/image/theora /camera/depth_registered/image/theora/parameter_descriptions /camera/depth_registered/image/theora/parameter_updates /camera/depth_registered/image_raw /camera/depth_registered/image_raw/compressed /camera/depth_registered/image_raw ... (more)

2015-12-28 23:48:31 -0500 received badge  Notable Question (source)
2015-12-26 01:55:39 -0500 received badge  Popular Question (source)
2015-12-25 14:05:44 -0500 commented question Connecting two kinects with openni_camera will show only the first two topics that are read

Hi, I met a problem when using your files. Here is the problem link. Thanks very much!

2015-12-25 14:04:39 -0500 asked a question Using two kinects

Hi,

I'm using ROS indigo with two kinects. I have configued openni_camera and the launch file of using two kinects.

However, different from the feasible usage example above, I met problems when launching the multi_kinect launch file. The three files I used: (file1, file2, file3) are the same with those in the link.

The problem:

image description

But I can roslaunch each of the Kinect with freenect.launch.

Thanks very much!

2015-11-06 20:17:38 -0500 received badge  Famous Question (source)
2015-10-30 04:52:05 -0500 received badge  Famous Question (source)
2015-09-27 12:48:06 -0500 commented answer install scan_tools packages

Could you let me know how you solved the problem? Thanks!

2015-09-27 10:49:42 -0500 received badge  Popular Question (source)