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

ChenJinluo's profile - activity

2020-07-27 07:28:54 -0500 received badge  Famous Question (source)
2016-06-19 21:29:33 -0500 received badge  Famous Question (source)
2016-04-14 08:01:04 -0500 received badge  Famous Question (source)
2016-03-02 13:37:38 -0500 received badge  Notable Question (source)
2016-02-26 04:19:52 -0500 received badge  Notable Question (source)
2015-11-22 01:53:16 -0500 received badge  Popular Question (source)
2015-11-21 19:40:32 -0500 commented answer Why the .config file doesn't works for me

Oh, I was stupid. Thank you very much!~

2015-11-21 06:02:58 -0500 asked a question Why the .config file doesn't works for me

Ubuntu: 12.04

ROS: Hydro

I am learning to set the level of logging message, however, I find that my .config doesn't work.

This is my source code in example1.cpp:

#include <ros/ros.h>
int main( int argc, char **argv )
{
  ros::init( argc, argv, "example1" );
  //ROS_DEBUG( "This is a DEBUG message!" );   
 ROS_INFO("This is an INFO message!");
 ROS_WARN("This is a WARN message!");
 ROS_ERROR("This is an ERROR message!");
 ROS_FATAL("This is a FATAL message!");

 ros::spinOnce();
 return EXIT_SUCCESS;
}

chapter3_tutorials.config:

log4j.logger.ros.chapter3_tutorials.config=ERROR

example1.launch :

<?xml version="1.0" encoding="UTF-8"?>
<launch>
  <!-- Logger config -->
  <env name="ROSCONSOLE_CONFIG_FILE"
       value="$(find chapter3_tutorials)/config/chapter3_tutorials.config"/>

  <!-- Example 1 -->
  <node pkg="chapter3_tutorials" type="example1" name="example1"
        output="screen"/>
</launch>

After I roslaunch the code, it should print only logging message ERROR and FATAL, But the INFO and WARN also are printed.

How to solve it? Thank you~

2015-11-09 00:34:36 -0500 received badge  Citizen Patrol (source)
2015-11-09 00:33:04 -0500 received badge  Popular Question (source)
2015-11-09 00:31:52 -0500 commented answer How to catkin_make designated package in the same workspace?

Thank you very much! I should search it in Wiki first~

2015-11-08 03:02:18 -0500 asked a question How to catkin_make designated package in the same workspace?

Ubuntu: 12.04

ROS: Hydro

Hey, everyone~ I am a freshman to ROS.

The problem occurred when I want to catkin_make only one package in the my workspace.

There are 2 packages, chapter2_tutorials and dynamic_tutorials in my workspace.

I want to catkin_make one of my packages,

after I run catkin_make chapter2_tutorials , The terminal shows:

+++ processing catkin package: 'chapter2_tutorials'
+++ processing catkin package: 'dynamic_tutorials'

I think it obviously shows that it catkin_make both of the packages.

So what should I do to make it? Thank you~

2015-11-08 01:35:13 -0500 received badge  Supporter (source)
2015-11-08 01:33:36 -0500 commented answer How to solve ‘add_dependencies Adding dependency to non-existent target:...’

Thanks a lot ! The procedure in ROS Wiki confused me. I should catkin_make first to generate the xx.Config.h file, then add_dependencies(example_node ${PROJECT_NAME}_gencfg) to make my .cpp file. Then it works. Thanks very much~

2015-11-08 00:27:09 -0500 received badge  Enthusiast
2015-11-07 19:36:59 -0500 received badge  Popular Question (source)
2015-11-06 21:08:26 -0500 received badge  Editor (source)
2015-11-06 21:07:11 -0500 asked a question How to solve ‘add_dependencies Adding dependency to non-existent target:...’

Ubuntu: 12.04

ROS: Hydro

I learn to write .cfg file according to WiKilink text

After I finished it and ran catkin_make, error occurred.

 add_dependencies Adding dependency to non-existent target: example_node

How can I solve it ? Thank you ~

2015-11-06 19:32:33 -0500 received badge  Scholar (source)
2015-11-06 19:32:22 -0500 commented answer How to solve '[rosrun] Couldn't find executable named ...'?

It works! Thanks a lot ^ ^

2015-11-06 03:43:11 -0500 received badge  Notable Question (source)
2015-11-05 05:58:33 -0500 commented answer How to solve '[rosrun] Couldn't find executable named ...'?

my package. [rospack] Error: stack/package chapter2_tutorials not found

2015-11-05 05:57:52 -0500 commented answer How to solve '[rosrun] Couldn't find executable named ...'?

Thanks. But it doesn't help. In the end of my ~./bashrc, I already have export ROS_PACKAGE_PATH=~/dev/catkin_ws:/home/exbot/rosbuild_ws/sandbox:/home/exbot/catkin_ws/src:/opt/ros/hydro/share:/opt/ros/hydro/stacks If I add source /opt/ros/hydro/setup.bash in the end. It even can't find

2015-11-05 05:50:57 -0500 received badge  Popular Question (source)
2015-11-05 02:12:40 -0500 asked a question How to solve '[rosrun] Couldn't find executable named ...'?

Ubuntu 12.04

ROS Hydro

I am a freshman to ROS, recently I create nodes according to the book ‘Learning ROS for Robotics Programing Second Edition’,

but after I execute ‘rosrun’, something strange happend:

rosrun chapter2_tutorials chap2_example1_a

It shows that:

[rosrun] Couldn't find executable named chap2_example1_a below /home/exbot/dev/catkin_ws/src/chapter2_tutorials

Actually, the executable chap2_example1_a exists in /home/dev/catkin_ws/devel/lib

I think something is wrong with the path. But I am not sure.

How to solve it? Thank you~