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

kitkatme's profile - activity

2023-07-14 07:08:05 -0500 received badge  Famous Question (source)
2023-07-14 07:08:05 -0500 received badge  Notable Question (source)
2021-06-27 22:52:40 -0500 received badge  Good Question (source)
2021-02-04 15:16:02 -0500 received badge  Nice Question (source)
2019-07-23 05:51:01 -0500 received badge  Famous Question (source)
2019-07-17 02:16:54 -0500 received badge  Popular Question (source)
2019-05-09 07:37:26 -0500 received badge  Notable Question (source)
2019-04-22 15:01:48 -0500 commented answer Monte Carlo simulations- repeated trials

thanks, that was my confusion, I thought the roslaunch API could only be used if your code was also in python. now I'm t

2019-04-22 15:00:41 -0500 marked best answer Monte Carlo simulations- repeated trials

I need to run the same simulation repeatedly (100 times) and I'd rather not do it manually. However, I have not found any resources describing how to do this in ROS. I have a launch file that runs the simulation once, so ideally I could write code that launches it, cuts it off after simulation time reaches a certain point, then saves and relaunches. How can I do this?

Other details: in ROS melodic, and all my code is in C++.

2019-04-20 18:48:50 -0500 asked a question Monte Carlo simulations- repeated trials

Monte Carlo simulations- repeated trials I need to run the same simulation repeatedly (100 times) and I'd rather not do

2019-04-16 23:17:07 -0500 received badge  Popular Question (source)
2019-04-14 08:47:02 -0500 received badge  Commentator
2019-04-14 08:47:02 -0500 commented answer message header doesn't build

thanks so much!! your suggestion to change the include line to explore_lite/util.h solved the issue. also thanks for the

2019-04-14 08:40:54 -0500 marked best answer message header doesn't build

I know this question has been asked a number of times, and I've gone through and followed the instructions on a number of those answers (for example- here and here), as well as in the documentation for building a custom message. Yet still my message header is not building.

This is the error I get:

/home/erinline/Documents/testsim/src/m-explore/explore/src/explore.cpp:39:10: fatal error: msg/util.h: No such file or directory


#include <msg/util.h>
          ^~~~~~~~~~~~
compilation terminated.
m-explore/explore/CMakeFiles/explore.dir/build.make:86: recipe for target 'm-explore/explore/CMakeFiles/explore.dir/src/explore.cpp.o' failed
make[2]: *** [m-explore/explore/CMakeFiles/explore.dir/src/explore.cpp.o] Error 1
CMakeFiles/Makefile2:23711: recipe for target 'm-explore/explore/CMakeFiles/explore.dir/all' failed
make[1]: *** [m-explore/explore/CMakeFiles/explore.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

This is my CMakeLists.txt:

cmake_minimum_required(VERSION 2.8.3)
project(explore_lite)

## Find catkin macros and libraries
find_package(catkin REQUIRED COMPONENTS
  actionlib
  actionlib_msgs
  costmap_2d
  geometry_msgs
  map_msgs
  move_base_msgs
  nav_msgs
  roscpp
  std_msgs
  tf
  visualization_msgs
  message_generation
)

add_message_files(
  FILES
  util.msg
)

generate_messages(
  DEPENDENCIES
  std_msgs
)

###################################
## catkin specific configuration ##
###################################
catkin_package(
  CATKIN_DEPENDS
    actionlib_msgs
    geometry_msgs
    map_msgs
    move_base_msgs
    nav_msgs
    std_msgs
    visualization_msgs
    message_runtime
)

###########
## Build ##
###########
# c++11 support required
include(CheckCXXCompilerFlag)
check_cxx_compiler_flag("-std=c++11" COMPILER_SUPPORTS_CXX11)
if(COMPILER_SUPPORTS_CXX11)
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
else()
  message(FATAL_ERROR "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
endif()

## Specify additional locations of header files
include_directories(
  ${catkin_INCLUDE_DIRS}
  include
)

add_executable(explore
  src/costmap_client.cpp
  src/explore.cpp
  src/frontier_search.cpp
)
#add_dependencies(explore ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})

add_dependencies(explore explore_lite_generate_messages_cpp)
target_link_libraries(explore ${catkin_LIBRARIES})

#############
## Install ##
#############

# install nodes
install(TARGETS explore
  ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

# install roslaunch files
install(DIRECTORY launch/
  DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
)

#############
## Testing ##
#############
if(CATKIN_ENABLE_TESTING)
  find_package(roslaunch REQUIRED)

  # test all launch files
  roslaunch_add_file_check(launch)
endif()

My message is called util.msg, it is in a file called msg within the package file called explore. I must be missing something, since those previous answers seem to work for some folks. Any advice on where I am going wrong would be greatly appreciated!

2019-04-14 08:32:18 -0500 received badge  Famous Question (source)
2019-04-13 17:54:12 -0500 asked a question message header doesn't build

message header doesn't build I know this question has been asked a number of times, and I've gone through and followed t

2019-04-02 13:22:39 -0500 marked best answer husky exploration demo in melodic

Although Husky is not technically supported yet for ROS melodic, it did work to run the Husky demos 1-3 here so I am hopeful I can get the 4th demo to run, frontier exploration. But in running that demo (and it does run, just doesn't do exploration) there is an issue because the files in frontier exploration were moved and renamed in the melodic release. I am fairly new to ROS, so I don't know how to properly make the change.

Here is the original Husky exploration launch file:

<launch>

    <node pkg="frontier_exploration" type="explore_client" name="explore_client" output="screen"/>

    <node pkg="frontier_exploration" type="explore_server" name="explore_server" output="screen">

        <param name="frequency" value="1.0"/>

        <!-- Should be less than sensor range -->
        <param name="goal_aliasing" value="2.0"/>

        <rosparam file="$(find husky_navigation)/config/costmap_common.yaml" command="load" ns="explore_costmap" />
        <rosparam file="$(find husky_navigation)/config/costmap_exploration.yaml" command="load" ns="explore_costmap" />

      </node>
</launch>

The names in both type fields are no longer used. I think explore_server is now called exploration_server, but explore_client I am less sure of. There is something called plugin_client, and the methods in each seem to match up pretty well. Has anyone else already run into this and fixed it? Or if not, does anyone have an idea of the changes that need to be made to the husky files to run the latest version of frontier_exploration?

As mentioned, exploration demo does run, it just does not actually explore. As it starts it gives an error though:

ERROR: cannot launch node of type [frontier_exploration/explore_client]: can't locate node [explore_client] in package [frontier_exploration]
ERROR: cannot launch node of type [frontier_exploration/explore_server]: can't locate node [explore_server] in package [frontier_exploration]

Other info: Ubuntu bionic 18.04, ROS melodic. I'm using the husky package for kinetic and frontier_exploration package for melodic.

2019-04-02 13:22:32 -0500 answered a question husky exploration demo in melodic

Eventually figured it out. Replace the first two nodes shown in the original post (in the exploration.launch file) with:

2019-04-02 13:15:31 -0500 commented question husky exploration demo in melodic

Yeah when I eventually got it running I got the same severe warning, which didn't make the program crash but no explorat

2019-04-02 13:12:38 -0500 received badge  Notable Question (source)
2019-04-02 05:29:34 -0500 received badge  Student (source)
2019-04-02 05:28:42 -0500 received badge  Popular Question (source)
2019-03-20 03:36:13 -0500 received badge  Popular Question (source)
2019-03-12 10:11:24 -0500 received badge  Famous Question (source)
2019-03-11 09:37:32 -0500 marked best answer What robot should I use for SLAM?

I am in algorithm development and I just need a robot to test on in Gazebo simulation. I have tried several robots I found online and none seem to work quite right, so I am looking for advice about a robot simulation for ROS Melodic, Gazebo 9, that is compatible with gmapping or hector, and ideally with frontier exploration (explore_lite package). My only specific sensor requirement is that it have lidar.

BTW, I have tried the Husky (bad maps, can't figure out why), the Turtlebot3 (not compatible with explore_lite because it doesn't use move_base for commands), and the Summit XL and XLS (bad localization, both).

Any advice would be greatly appreciated!

2019-03-11 09:37:32 -0500 received badge  Scholar (source)
2019-03-11 07:42:32 -0500 commented question What robot should I use for SLAM?

No; as mentioned, I followed the virtual SLAM instructions

2019-03-11 07:40:49 -0500 received badge  Notable Question (source)
2019-03-11 07:26:01 -0500 commented question What robot should I use for SLAM?

thanks for pointing me to that launch file!! problem solved! when I run move_base.launch in addition to the turtlebot3 S

2019-03-11 07:16:00 -0500 commented question What robot should I use for SLAM?

ah, thanks for the clarification! to be more specific with the turtlebot3, when I run other robots like the husky, there

2019-03-11 06:56:14 -0500 commented answer What robot should I use for SLAM?

thanks, I'll check it out!!

2019-03-11 06:55:54 -0500 commented question What robot should I use for SLAM?

confuses me too, but when it's running the SLAM demo per virtual SLAM instructions here, and I then print the list of to

2019-03-11 06:51:08 -0500 received badge  Popular Question (source)
2019-03-10 17:12:56 -0500 asked a question What robot should I use for SLAM?

What robot should I use for SLAM? I am in algorithm development and I just need a robot to test on in Gazebo simulation.

2019-03-09 07:15:36 -0500 commented question installing ros kinetic in mac mojave

I gave up trying to put ROS on my Mac, that guide didn't work for me (he does mention it doesn't always work). Alternati

2019-03-08 09:49:25 -0500 edited question husky SLAM demo produces bad map

husky SLAM demo produces bad map When I run the Husky gmapping/SLAM demo, the resulting map is terrible. It's piecey, no

2019-03-08 09:17:51 -0500 edited question husky SLAM demo produces bad map

husky SLAM demo produces bad map When I run the Husky gmapping/SLAM demo, the resulting map is terrible. It's piecey, no

2019-03-08 09:17:51 -0500 received badge  Editor (source)