5 #include <KrisLibrary/math3d/primitives.h> 7 namespace Meshing {
class PointCloud3D; }
21 bool ROSInit(
const char* nodename=
"klampt");
39 std::string
ROSFrame(
const char* topic);
50 bool ROSPublishPose(
const Math3D::RigidTransform& T,
const char* topic=
"klampt/transform");
51 bool ROSPublishJointState(
const Robot& robot,
const char* topic=
"klampt/joint_state");
52 bool ROSPublishPointCloud(
const Meshing::PointCloud3D& pc,
const char* topic=
"klampt/point_cloud");
75 bool ROSSubscribePose(Math3D::RigidTransform& T,
const char* topic=
"klampt/joint_state");
106 bool ROSPublishTransform(
const Math3D::RigidTransform& T,
const char* frame=
"klampt_transform");
bool ROSDetach(const char *topic)
Deletes a topics. [TODO] To remove the subscribed TF topics, call ...
The main robot type used in RobotSim.
Definition: Robot.h:79
int ROSNumPublishedTopics()
Returns the number of advertised topics.
A class containing information about an ODE-simulated and controlled robot.
Definition: ControlledSimulator.h:17
bool ROSPublishTrajectory(const LinearPath &path, const char *topic="klampt/trajectory")
publishes a Trajectory message with default joint names
bool ROSWaitForUpdate(const char *topic, double timeout=0)
bool ROSPublishTransforms(const RobotWorld &world, const char *frameprefix="klampt")
bool ROSSetQueueSize(int size)
Sets the global queue size.
The main world class containing multiple robots, objects, and static geometries (terrains). Lights and other viewport information may also be stored here.
Definition: World.h:20
bool ROSShutdown()
Must call this after all other ROS[X] calls to cleanly shut down ROS.
bool ROSSubscribePointCloud(Meshing::PointCloud3D &pc, const char *topic="klampt/point_cloud")
A piecewise linear path.
Definition: Paths.h:13
A sensor base class. A SensorBase should allow a Controller to both connect to a simulation as well a...
Definition: Sensor.h:51
bool ROSSubscribeTrajectory(LinearPath &path, const char *topic="klampt/trajectory")
bool ROSSubscribeTransform(Math3D::RigidTransform &T, const char *frameprefix="klampt_transform")
bool ROSSubscribeUpdate()
bool ROSHadUpdate(const char *topic)
Returns true if the ROS topic had an update on the past ROSSubscribeUpdate step.
bool ROSSubscribePose(Math3D::RigidTransform &T, const char *topic="klampt/joint_state")
bool ROSPublishSensorMeasurement(const SensorBase *sensor, const char *topic="klampt/sensor")
bool ROSSubscribeJointState(Robot &robot, const char *topic="klampt/joint_state")
int ROSNumSubscribedTopics()
Returns the number of subscribed topics.
bool ROSSubscribeTransforms(RobotWorld &world, const char *frameprefix="klampt")
bool ROSPublishTransform(const Math3D::RigidTransform &T, const char *frame="klampt_transform")
Publishes the transform to the transform server under the given name.
A physical simulator for a RobotWorld.
Definition: WorldSimulation.h:67
bool ROSInitialized()
Returns true if ROS is initialized.
std::string ROSFrame(const char *topic)
Returns the ROS frame ID that the data is attached to, if any.
bool ROSIsConnected(const char *topic)
bool ROSInit(const char *nodename="klampt")
bool ROSPublishSensedJointState(ControlledRobotSimulator &robot, const char *topic="klampt/joint_state_sensed")
publishes a JointState about the robot's current sensed joint state
bool ROSPublishCommandedJointState(ControlledRobotSimulator &robot, const char *topic="klampt/joint_state_commanded")
publishes a JointState about the robot's current commanded joint state