5 #include <KrisLibrary/math3d/primitives.h> 7 namespace Meshing {
class PointCloud3D; }
12 class SimRobotController;
23 bool ROSInit(
const char* nodename=
"klampt");
41 std::string
ROSFrame(
const char* topic);
52 bool ROSPublishPose(
const Math3D::RigidTransform& T,
const char* topic=
"klampt/transform");
53 bool ROSPublishJointState(
const RobotModel& robot,
const char* topic=
"klampt/joint_state");
54 bool ROSPublishPointCloud(
const Meshing::PointCloud3D& pc,
const char* topic=
"klampt/point_cloud");
58 bool ROSPublishTrajectory(
const RobotModel& robot,
const LinearPath& path,
const char* topic=
"klampt/trajectory");
60 bool ROSPublishTrajectory(
const RobotModel& robot,
const std::vector<int>& indices,
const LinearPath& path,
const char* topic=
"klampt/trajectory");
72 bool ROSPublishSensorMeasurement(
const SensorBase* sensor,
const RobotModel& robot,
const char* topic=
"klampt/sensor",
const char* frameprefix=
"klampt");
77 bool ROSSubscribePose(Math3D::RigidTransform& T,
const char* topic=
"klampt/joint_state");
108 bool ROSPublishTransform(
const Math3D::RigidTransform& T,
const char* frame=
"klampt_transform");
bool ROSSubscribePointCloud(Meshing::PointCloud3D &pc, const char *topic="klampt/point_cloud")
bool ROSSetQueueSize(int size)
Sets the global queue size.
bool ROSSubscribeJointState(RobotModel &robot, const char *topic="klampt/joint_state")
bool ROSPublishTrajectory(const RobotModel &robot, const std::vector< int > &indices, const LinearPath &path, const char *topic="klampt/trajectory")
publishes a Trajectory along the specified robot indices
bool ROSShutdown()
Must call this after all other ROS[X] calls to cleanly shut down ROS.
bool ROSPublishCommandedJointState(SimRobotController &robot, const char *topic="klampt/joint_state_commanded")
publishes a JointState about the robot's current commanded joint state
int ROSNumSubscribedTopics()
Returns the number of subscribed topics.
bool ROSWaitForUpdate(const char *topic, double timeout=0)
bool ROSSubscribeTransform(Math3D::RigidTransform &T, const char *frameprefix="klampt_transform")
bool ROSPublishTransforms(const RobotModel &robot, const char *frameprefix="klampt")
bool ROSDetach(const char *topic)
Deletes a topics. [TODO] To remove the subscribed TF topics, call ...
bool ROSInit(const char *nodename="klampt")
std::string ROSFrame(const char *topic)
Returns the ROS frame ID that the data is attached to, if any.
bool ROSInitialized()
Returns true if ROS is initialized.
bool ROSHadUpdate(const char *topic)
Returns true if the ROS topic had an update on the past ROSSubscribeUpdate step.
bool ROSSubscribeTrajectory(RobotModel &robot, LinearPath &path, const char *topic="klampt/trajectory")
bool ROSSubscribeTransforms(RobotModel &robot, const char *frameprefix="klampt")
int ROSNumPublishedTopics()
Returns the number of advertised topics.
bool ROSPublishSensorMeasurement(const SensorBase *sensor, const RobotModel &robot, const char *topic="klampt/sensor", const char *frameprefix="klampt")
bool ROSIsConnected(const char *topic)
bool ROSSubscribePose(Math3D::RigidTransform &T, const char *topic="klampt/joint_state")
bool ROSPublishTransform(const Math3D::RigidTransform &T, const char *frame="klampt_transform")
Publishes the transform to the transform server under the given name.
bool ROSSubscribeUpdate()
bool ROSPublishSensedJointState(SimRobotController &robot, const char *topic="klampt/joint_state_sensed")
publishes a JointState about the robot's current sensed joint state
Definition: ContactDistance.h:6