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

foodtooth's profile - activity

2020-10-15 05:24:14 -0500 received badge  Notable Question (source)
2020-10-15 05:24:14 -0500 received badge  Popular Question (source)
2020-07-10 17:20:23 -0500 received badge  Notable Question (source)
2020-07-10 17:20:23 -0500 received badge  Popular Question (source)
2020-02-25 03:09:33 -0500 received badge  Popular Question (source)
2018-09-04 03:52:07 -0500 asked a question Can topic statistics get all history data and calculate?

Can topic statistics get all history data and calculate? It seems like that it only give most recently result on runtime

2018-09-01 01:17:29 -0500 received badge  Enthusiast
2018-08-27 06:30:42 -0500 received badge  Organizer (source)
2018-08-27 06:27:59 -0500 asked a question I want to add a new node handle in init.cpp, to do some caculations on tcp packages which uses this ros_comm

I want to add a new node handle in init.cpp, to do some caculations on tcp packages which uses this ros_comm I added thi

2018-08-09 06:51:16 -0500 marked best answer Command line tool written in rosperf_main.py cannot find `rosperf talker` executable

I have a rosperf package written in cpp, and runs alright using rosrun rosperf talker. Now I want to create rosperf command line tool (borrowed code from rosbag), but roslib.packages.find_node in rosperf_main.py cannot find the rosperf talker executable

How can I fix this? How to find the perf executable in python module?

This is the CMakeLists.txt

cmake_minimum_required(VERSION 2.8.3)
project(rosperf)

if(NOT WIN32)
  set_directory_properties(PROPERTIES COMPILE_OPTIONS "-g;-std=c++11;-Wall;-Wextra")
endif()

find_package(Boost REQUIRED COMPONENTS date_time thread)
find_package(catkin REQUIRED COMPONENTS message_generation rostime roscpp rosconsole roscpp_serialization std_msgs)

include_directories(${catkin_INCLUDE_DIRS} include)
link_directories(${catkin_LIBRARY_DIRS})

catkin_python_setup()

add_message_files(DIRECTORY msg FILES perf.msg)
generate_messages(DEPENDENCIES std_msgs)

catkin_package(
    LIBRARIES rosperf
    INCLUDE_DIRS include
    CATKIN_DEPENDS message_runtime std_msgs
    )

macro(rosperf T)
  add_executable(${T} src/${T}/${T}.cpp)
  target_link_libraries(${T} ${catkin_LIBRARIES} ${Boost_LIBRARIES})
  add_dependencies(${T} rosperf_gencpp)
  install(TARGETS ${T}
    RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
endmacro()

foreach(dir
    perf_talker
    perf_listener
    )
  rosperf(${dir})
endforeach()
2018-08-09 06:38:36 -0500 commented question Command line tool written in rosperf_main.py cannot find `rosperf talker` executable

Sorry, this is typo in roslib.packages.find_node causing the error. I will add other info if the problem re-occurs.

2018-08-09 04:31:27 -0500 asked a question Command line tool written in rosperf_main.py cannot find `rosperf talker` executable

Command line tool written in rosperf_main.py cannot find `rosperf talker` executable I have a rosperf package written in