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

How to load CollisionObject or PointCloud files via ROS C++ API

asked 2021-02-04 22:30:31 -0500

Aiden gravatar image

updated 2021-02-05 00:26:23 -0500

fvd gravatar image

I want to dynamic load the obstacles in the moveit_plan , how to use the C++ api to load the sensor data or other files?

edit retag flag offensive close merge delete

Comments

Could you explain what you mean by "the obstacles in the moveit_plan"? CollisionObjects? PointClouds? It would help if you showed what you have tried until now.

fvd gravatar image fvd  ( 2021-02-04 22:47:04 -0500 )edit

CollsionObject or also the PCL data sent by 3D camera

Aiden gravatar image Aiden  ( 2021-02-04 23:57:05 -0500 )edit

https://answers.ros.org/question/3097... I have found the load stl model file as a collisionObject , thanks

Aiden gravatar image Aiden  ( 2021-02-05 02:01:07 -0500 )edit

If your questions are solved, please mark your posts as answered so they are taken out of the queue.

fvd gravatar image fvd  ( 2021-02-05 21:30:06 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-02-05 07:02:36 -0500

fvd gravatar image

I don't know of a standard way to save/load to files, but all ROS messages can be serialized to strings and be exported to a file format like yaml, which C++ and Python have plugins for. You could also use warehouse_ros to interface with a database instead of a folder. There was discussion about a SQLite version here:

https://github.com/ros-planning/movei... https://github.com/ros-planning/movei... https://github.com/gleichdick/warehou...

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-02-04 22:30:31 -0500

Seen: 101 times

Last updated: Feb 05 '21