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

huanxiner's profile - activity

2021-09-08 10:05:36 -0500 received badge  Guru (source)
2021-09-08 10:05:36 -0500 received badge  Great Answer (source)
2020-10-06 16:18:00 -0500 received badge  Good Answer (source)
2019-05-13 05:47:18 -0500 received badge  Nice Answer (source)
2018-12-13 07:52:55 -0500 received badge  Famous Question (source)
2018-05-10 08:38:14 -0500 received badge  Notable Question (source)
2018-02-06 12:59:46 -0500 commented question ROS networking unable to see mesages published by slave computer

NUC seems to have the same startup script as master, is that a typo?

2017-09-15 09:39:21 -0500 commented question Launching a node two times with same namespace

Why don't you just put the two nodes in the same group? <group ns="camera"> ... </group>

2017-09-08 10:19:16 -0500 received badge  Popular Question (source)
2017-09-07 06:52:09 -0500 received badge  Nice Answer (source)
2017-09-06 11:30:19 -0500 answered a question I am a little confused about costMap and globalPlanner

Rewriting the first piece of code like this may help with understanding. int index; for (unsigned int y = 0; y < siz

2017-09-06 11:09:38 -0500 answered a question how to play bag files from c++ or python class

I would try calling rosbag play directly. import subprocess player_proc = subprocess.Popen(['rosbag', 'play', bag_filen

2017-06-08 13:20:03 -0500 commented question Custom RViz plugin sometimes doesn't appear

Then what is the history length value you are using? It is initialized to 1. I assume you want a larger number.

2017-06-07 12:42:43 -0500 commented question Custom controller dies when launched in global launch file

Could it be the ordering of the launch files in the robot.launch? What happens when you move led.launch to the end of ro

2017-06-07 10:16:37 -0500 commented question Custom RViz plugin sometimes doesn't appear

Do you have a 'history length' equivalent parameter in your custom plugin? It sounds like a queue size issue to me.

2017-06-07 10:10:16 -0500 commented question RVIZ collision object transparency

Try changing 'Alpha' values in the displays.

2017-04-12 13:47:24 -0500 commented question how to convert cpp program to ROS

What do you mean by converting it to ROS platform? Using a catkin workspace? Or do you need any other stuff in ROS as well?

2017-04-05 13:09:46 -0500 answered a question how to pass params from launch file to cpp file

Here is an example of how to do that.

<node name="tfs" pkg="ctt_tools" type="tfs" respawn="true"/> 
    <param name="param_1" value="23.0" />
</node>

and

double param_1;
node_handle.getParam("/tfs/param_1", param_1);      
if(m.point.x > param_1 && m.point.x < 26 && m.point.y > -4.70 && m.point.y < 4.50 )
{ 
   ...
}

You could also refer to Parameters in launch file and Use parameters in roscpp for more details.

2017-04-03 09:21:08 -0500 commented question yocs_waypoints_navi - Rviz publish tool not listening

You are right.. Sorry I have no idea neither why it doesn't even subscribe to the topic. Could you post the solution if you ever find one?

2017-03-30 10:23:51 -0500 commented question Accessing rviz view (Camera + Marker) in rospy

I am not sure if I understand you completely, but are you looking for a topic with 'rendered' camera+marker images? If so I don't believe it is readily available in rviz..

2017-03-29 12:10:24 -0500 commented question yocs_waypoints_navi - Rviz publish tool not listening

Did you turn off single click in the rviz tool properties panel?

2017-03-29 01:16:56 -0500 received badge  Good Answer (source)
2017-03-29 01:16:56 -0500 received badge  Enlightened (source)
2017-03-29 01:03:18 -0500 received badge  Nice Answer (source)
2017-03-28 14:56:29 -0500 commented question Using custom fields in a ROS service

Try changing sensor_msgs::PointCloud2 to sensor_msgs/PointCloud2.

2017-03-28 14:54:28 -0500 commented question yocs_waypoints_navi - Rviz publish tool not listening

Not sure, one more thing that may help is to rostopic echo /clicked_point and use publish tool to click on something. If nothing shows maybe do rostopic info /clicked_point and see what's there?

2017-03-28 09:40:55 -0500 commented question yocs_waypoints_navi - Rviz publish tool not listening

Is there any output in the terminal where rviz runs when you use the publish tool?

2017-02-28 10:00:35 -0500 commented question How can i fix RViz, Segmentation fault (core dumped)

I had a similar issue once. The solution was to delete the default config file in ~/.rviz (assuming you are using linux). Not sure if this is gonna work for you but worth a try!

2017-02-27 10:00:51 -0500 received badge  Student (source)
2017-02-27 09:36:46 -0500 commented question RViz -- How to publish more than 1 point?
2017-02-27 09:33:05 -0500 received badge  Commentator
2017-02-27 09:33:05 -0500 commented question Can shortcut key to a rviz tool be set outside the class constructor?

Thanks William, I may open a pr later then. By the way a temporary work-around was setting PublishPoint tool as the default tool and then one can always use the Escape key to go back to it...

2017-02-22 09:34:26 -0500 answered a question Error: no matching function for call to 'ros::Nodehandle::advertise()'

What's the message type that you are publishing on topic /circles?

ros::Publisher pub = handle.advertise<std_msgs::Empty>("my_topic", 1);
                                      ~~~~~~~~~~~~~~~   You are missing this part
2017-02-20 10:48:41 -0500 asked a question Can shortcut key to a rviz tool be set outside the class constructor?

For certain reasons I would like to have a shortcut key to the rviz/PublishPoint tool, and seems like there is no default shortcut key set in the class constructor.

After a bit of research I didn't find a way to do this without modifying the original code... Do anybody have a hint on how this can be done? Thanks!

2016-11-29 13:46:31 -0500 commented question QT With Librviz

Is there any message when you echo the topic /my_cloud?

2016-11-16 17:22:36 -0500 commented question Unable to view 3D map on rviz

It's hard to determine what's going on with the information you provided... Are you sure anything is published to cloud_in topic? And the topic rviz should subscribe is occupied_cells_vis according to this page. Is there any message when you echo this topic?

2016-11-09 01:37:48 -0500 received badge  Nice Answer (source)
2016-11-08 19:21:22 -0500 commented answer Unable to display Interactive Marker in custom QWidget

Glad it helps :) I did quite a bit digging in the source code as well. Since interactive marker requires mouse event handling and stuff, I suspected display by itself is not enough. Then I looked into how rviz is implemented, and found this interactionTool in the default plugin.

2016-11-08 17:32:51 -0500 answered a question Unable to display Interactive Marker in custom QWidget

I have always wondered if this is doable myself, so I just spent some time to figure it out. Turned out that InteractiveMarker requires not only the display, but also the 'tool' to enable interaction. The following code is developed based on your snippet.

  rviz::Display *obj_ = visualization_manager_->createDisplay( "rviz/InteractiveMarkers", "Obj Loader", true );
  obj_->subProp("Reference Frame")->setValue("base_link"); // This probably works by itself, I added the next line just in case
  visualization_manager_->setFixedFrame("base_link");
  obj_->subProp("Update Topic")->setValue("/basic_controls/update");
  obj_->initialize(visualization_manager_);
  obj_->setEnabled(true);

  rviz::ToolManager *tool_manager = visualization_manager_->getToolManager();
  tool_manager->initialize();
  rviz::Tool *interact_tool = tool_manager->addTool( "rviz/Interact" );
  tool_manager->setCurrentTool(interact_tool);
  ROS_ASSERT(obj_);

You will need to include rviz/tool_manager.h somewhere.

2016-11-07 23:45:33 -0500 answered a question what are the current state-of-the-art SLAM algorithms for these scenarios?

Try reading some papers yourself.

2016-11-07 03:08:23 -0500 received badge  Teacher (source)
2016-11-04 14:51:21 -0500 commented question measuring time from tf server to web client

Yes you can first solve the time difference d in that post, then estimate travel time of each communication. But the travel time will vary each time so I don't see why you would want to calculate travel time for synchronization purpose.

2016-11-04 11:04:12 -0500 answered a question How to get the URI of a ROS node in Python?
>>> import rosgraph
>>> master = rosgraph.Master('/mynode')
>>> master.lookupNode("node_name')

This worked for me, but not sure if it's safe to deal with ros master directly this way.

2016-11-04 11:03:00 -0500 received badge  Editor (source)
2016-11-04 11:02:24 -0500 answered a question How to get the URI of a ROS node in Python?

import rosgraph master = rosgraph.Master('/mynode') master.lookupNode('node_name')

2016-11-03 13:33:13 -0500 commented question measuring time from tf server to web client

What are you aiming for? The tf messages have stamps on them, can you use that stamp for synchronization?

2016-11-02 13:49:13 -0500 received badge  Enthusiast