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

alextac98's profile - activity

2023-01-22 15:28:34 -0500 received badge  Nice Answer (source)
2023-01-10 04:01:47 -0500 received badge  Nice Question (source)
2021-05-17 11:40:31 -0500 received badge  Great Question (source)
2021-03-08 22:39:17 -0500 received badge  Famous Question (source)
2021-03-08 22:39:17 -0500 received badge  Notable Question (source)
2021-01-09 09:56:18 -0500 received badge  Good Question (source)
2020-10-17 06:26:28 -0500 received badge  Nice Question (source)
2020-06-24 13:53:13 -0500 received badge  Taxonomist
2020-04-09 03:20:11 -0500 received badge  Popular Question (source)
2020-04-08 08:09:33 -0500 commented answer URDF/XACRO RViz could not parse visual elements

Yeah that's what happens when you code at midnight. Thank you!

2020-04-08 08:09:01 -0500 marked best answer URDF/XACRO RViz could not parse visual elements

Hi everyone,

I am trying to make a URDF model and view it in Rviz. However, when I try to display the URDF model with RVIZ, it just spits out the following error:

[ERROR] [1586312501.638016618]: Could not parse visual element for Link [fl_module_base]
[ERROR] [1586312501.638561453]: Could not parse visual element for Link [base]
[ERROR] [1586312502.490229106]: Could not parse visual element for Link [fl_module_base]
[ERROR] [1586312502.490260233]: Could not parse visual element for Link [base]

Although the URDF is generated through a XACRO, I tried changing the .urdf file directly, with the same issue. It seems like the error is thrown just for the visual tag being where it is. Does anyone know what I might be doing wrong? Or is this just a bug? The URDF I am using is also below:

Cheers!

<?xml version="1.0" encoding="utf-8"?>
<!-- =================================================================================== -->
<!-- |    This document was autogenerated by xacro from base.urdf.xacro   | -->
<!-- |    EDITING THIS FILE BY HAND IS NOT RECOMMENDED                                 | -->
<!-- =================================================================================== -->
<robot name="base">
  <link name="fl_module_base">
    <visual>
      <cylinder length="0.6" radius="0.2"/>
    </visual>
  </link>
  <link name="base">
    <visual>
      <cylinder length="0.2" radius="0.2"/>
    </visual>
  </link>
  <joint name="base_joint" type="fixed">
    <parent link="base"/>
    <child link="fl_module_base"/>
    <origin rpy="0.0 0.0 0.0" xyz="0.0 0.0 0.0"/>
   </joint>

</robot>
2020-04-07 21:55:21 -0500 answered a question XYZ Cartesian or Gantry Robot URDF Files

I haven't seen a ready-made Gantry robot URDF, but it shouldn't be too complicated to build. You can either use URDFs or

2020-04-07 21:55:21 -0500 received badge  Rapid Responder (source)
2020-04-07 21:50:08 -0500 edited answer ERROR: Rosdep cannot find all required resources to answer your query

It looks like you installed rosdep2, which I believe is either deprecated or forked for ROS2. I have the following apt p

2020-04-07 21:50:08 -0500 received badge  Editor (source)
2020-04-07 21:49:50 -0500 answered a question ERROR: Rosdep cannot find all required resources to answer your query

It looks like you installed rosdep2, which I believe is either deprecated or forked for ROS2. I have the following insta

2020-04-07 21:49:50 -0500 received badge  Rapid Responder (source)
2020-04-07 21:29:22 -0500 asked a question URDF/XACRO RViz could not parse visual elements

URDF/XACRO RViz could not parse visual elements Hi everyone, I am trying to make a URDF model and view it in Rviz. Howe

2019-10-01 09:42:40 -0500 received badge  Enthusiast
2019-08-11 12:46:05 -0500 marked best answer catkin_make Error: Could NOT find TinyXML2 (missing: TinyXML2_LIBRARY TinyXML2_INCLUDE_DIR)

Hi everyone! I get this error when I try to compile my packages with catkin_make on a BeagleBone board (ARM). I have these packages installed (aptitude search tinyxml): libtinyxml-dev, libtinyxml2-2v5, libtinyxml2.6.2v5

Any suggestion would be appreciated. Here is the log:

root@beaglebone:~/RBE-2002# catkin_make
Base path: /root/RBE-2002
Source space: /root/RBE-2002/src
Build space: /root/RBE-2002/build
Devel space: /root/RBE-2002/devel
Install space: /root/RBE-2002/install
####
#### Running command: "cmake /root/RBE-2002/src -DCATKIN_DEVEL_PREFIX=/root/RBE-2002/devel -DCMAKE_INSTALL_PREFIX=/root/RBE-2002/install -G Unix Makefiles" in "/root/RBE-2002/build"
####
-- Using CATKIN_DEVEL_PREFIX: /root/RBE-2002/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/kinetic
-- This workspace overlays: /opt/ros/kinetic
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /root/RBE-2002/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.6
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 29 packages in topological order:
-- ~~  - class_loader
-- ~~  - ros_control (metapackage)
-- ~~  - ros_controllers (metapackage)
-- ~~  - pluginlib
-- ~~  - rqt_joint_trajectory_controller
-- ~~  - controller_manager_msgs
-- ~~  - four_wheel_steering_msgs
-- ~~  - hardware_interface
-- ~~  - combined_robot_hw
-- ~~  - controller_interface
-- ~~  - force_torque_sensor_controller
-- ~~  - forward_command_controller
-- ~~  - effort_controllers
-- ~~  - imu_sensor_controller
-- ~~  - position_controllers
-- ~~  - controller_manager
-- ~~  - diff_drive_controller
-- ~~  - gripper_action_controller
-- ~~  - joint_limits_interface
-- ~~  - joint_state_controller
-- ~~  - joint_trajectory_controller
-- ~~  - rqt_controller_manager
-- ~~  - sweep_ros
-- ~~  - controller_manager_tests
-- ~~  - combined_robot_hw_tests
-- ~~  - transmission_interface
-- ~~  - turtlebotmini
-- ~~  - urdf_geometry_parser
-- ~~  - velocity_controllers
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'class_loader'
-- ==> add_subdirectory(class_loader)
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   thread
--   system
--   chrono
--   date_time
--   atomic
-- Searching for Poco library...
--   Found Poco!
-- components found: Foundation.
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   thread
--   chrono
--   system
--   date_time
--   atomic
-- +++ processing catkin metapackage: 'ros_control'
-- ==> add_subdirectory(ros_control/ros_control)
-- +++ processing catkin metapackage: 'ros_controllers'
-- ==> add_subdirectory(ros_controllers/ros_controllers)
-- +++ processing catkin package: 'pluginlib'
-- ==> add_subdirectory(pluginlib)
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   filesystem
--   system
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
 Could NOT find TinyXML2 (missing: TinyXML2_LIBRARY TinyXML2_INCLUDE_DIR)
Call Stack (most recent call first):
 /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
 /opt/ros/kinetic/share/cmake_modules/cmake/Modules/FindTinyXML2.cmake:65 (find_package_handle_standard_args)
 pluginlib/CMakeLists.txt:6 (find_package)

-- Configuring incomplete, errors occurred!
See also "/root/RBE-2002/build/CMakeFiles/CMakeOutput.log".
See also "/root/RBE-2002/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

CMakeLists.txt of PluginLib:

cmake_minimum_required(VERSION 2.8.3)
project(pluginlib)

find_package(catkin REQUIRED COMPONENTS class_loader rosconsole roslib cmake_modules)
find_package(Boost REQUIRED COMPONENTS filesystem system)
find_package(TinyXML2 REQUIRED)

catkin_python_setup()

catkin_package(
  INCLUDE_DIRS include
  CATKIN_DEPENDS class_loader rosconsole roslib
  DEPENDS Boost TinyXML2
)

include_directories(include ${catkin_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${TinyXML2_INCLUDE_DIRS})

add_executable(plugin_tool src/plugin_tool.cpp)
target_link_libraries(plugin_tool ${Boost_LIBRARIES} ${catkin_LIBRARIES} ${TinyXML2_LIBRARIES})

install(TARGETS plugin_tool
  RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
  ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION})

install(DIRECTORY include/pluginlib/
  DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION})

install(FILES share/pluginlib/typed_class_loader_template.cpp
  DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})

install(PROGRAMS scripts/plugin_macro_update
  DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})

if(CATKIN_ENABLE_TESTING)
  add_library(test_plugins EXCLUDE_FROM_ALL SHARED test/test_plugins.cpp)

  catkin_add_gtest(${PROJECT_NAME}_utest test/utest.cpp)
  if(TARGET ${PROJECT_NAME}_utest)
    target_link_libraries(${PROJECT_NAME}_utest ${TinyXML2_LIBRARIES} ${catkin_LIBRARIES} ${Boost_LIBRARIES})
    add_dependencies(${PROJECT_NAME}_utest test_plugins)
  endif()

  include(CheckCXXCompilerFlag)
  check_cxx_compiler_flag("-std=c++11" COMPILER_SUPPORTS_CXX11)
  if(COMPILER_SUPPORTS_CXX11)
    catkin_add_gtest(${PROJECT_NAME}_unique_ptr_test test/unique_ptr_test.cpp)
    if(TARGET ${PROJECT_NAME}_unique_ptr_test)
      target_link_libraries(${PROJECT_NAME}_unique_ptr_test ${TinyXML2_LIBRARIES} ${catkin_LIBRARIES} ${Boost_LIBRARIES})
      set_target_properties(${PROJECT_NAME}_unique_ptr_test PROPERTIES COMPILE_FLAGS -std=c++11 LINK_FLAGS -std=c++11)
      add_dependencies(${PROJECT_NAME ...
(more)
2019-08-11 12:46:05 -0500 received badge  Self-Learner (source)
2019-07-19 10:10:56 -0500 marked best answer Run RViz with configuration file from .launch file

Hi everyone!

I was wondering if there is any way you can open rviz from a launch file while openning a custom configuration. The terminal command would be:

rosrun rviz rviz -d `rospack find package_name`/rviz/config_file.rviz

Thank you!